Manage

post
Create a Shop

https://shop.yordadev.network/v1/manage
This endpoint allows you to get free cakes.
Request
Response
Request
Headers
Authorization
required
string
Your Personal Access Token
Form Data Parameters
name
required
string
A name for your shop
description
required
string
A short description of your shop
Response
200: OK
Cake successfully retrieved.
{ "name": "Cake's name", "recipe": "Cake's recipe name", "cake": "Binary cake"}
404: Not Found
Could not find a cake matching this query.
{ "message": "Ain't no cake like that."}

get
Fetching Your Shop(s)

https://shop.yordadev.network/v1/manage
This endpoint allows you to fetch information for a specific shop or all your shops.
Request
Response
Request
Headers
Authorization
required
string
Your Personal Access Token
Query Parameters
shop_id
optional
string
The shop_id for a specific shop to fetch
scope.*
required
array
Scope array of Boolean values
scope.secret
required
boolean
True/False to include the shop's secret.
scope.categories
required
boolean
True/False to include the shop's categories
scope.products
required
boolean
True/False to include the shop's products
Response
200: OK

put
Updating a Shop

https://shop.yordadev.network/v1/manage
This endpoint allows you to update a specific shop.
Request
Response
Request
Headers
Authorization
required
string
Your Personal Access Token
Query Parameters
shop_id
required
string
The shop_id to which shop you want to update
name
required
string
The existing or updated name
description
required
string
The existing or updated description
Response
200: OK

delete
Destroying a Shop

https://shop.yordadev.network/v1/manage
This endpoint allows you to destroy everything related to a shop.
Request
Response
Request
Headers
Authorization
required
string
Your Personal Access Token
Query Parameters
shop_id
required
string
The shop_id to the desired shop to be destroyed
Response
200: OK