Two different domains and Two Systems Client/Server
Following Routes are available
Type | Url | Perameter | Description |
---|---|---|---|
GET | {your_host}/api/shops | { } | List of all create shop |
POST | {your_host}/api/shop | { name } | Create new shop with name and return shop details |
GET | {your_host}/api/shop/{shop_id}/products | { } | List of all product in given shop |
POST | {your_host}/api/shop/{shop_id}/product | { category, product, discount, price} | Create new product in given shop and return product details |
POST | {your_host}/api/shop/{shop_id}/produc/{product_id}t | { category, product, discount, price, _method:PUT or PATCH} | Update an existing product in given shop and return updated product details |
DELETE | {your_host}/api/shop/{shop_id}/product/{product_id} | { } | Delete product in given shop |