Return default topic
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response
Return slug as topic
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response
List all categories
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response
Get a category by id
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response
Add a new category
Parameters
Path:
Response
201 Created
400 Bad Request
422 Error Execute Query
Response
Update an existing category by id
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response
Delete a category by id
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response
List all products
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response
Get a product by id
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response
Add a new product
Parameters
Path:
Response
201 Created
400 Bad Request
422 Error Execute Query
Response
Update an existing product by id
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response
Delete a product by id
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response
Find categories by keyword (name)
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response
Find products by keyword (name, category, code, cid)
Parameters
Path:
Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query
Response