Default

Return default topic

Parameters
Path:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:


 

Response

Return slug as topic

Parameters
Path:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:


 

Response

Category

List all categories

Parameters
Path:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:


 

Response

Get a category by id

Parameters
Path:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:


 

Response

Add a new category

Parameters
Path:

Body:

Response
201 Created
400 Bad Request
422 Error Execute Query

 

Parameters
Path:

Body:


 

Response

Update an existing category by id

Parameters
Path:

Body:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:

Body:


 

Response

Delete a category by id

Parameters
Path:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:


 

Response

Product

List all products

Parameters
Path:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:


 

Response

Get a product by id

Parameters
Path:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:


 

Response

Add a new product

Parameters
Path:

Body:

Response
201 Created
400 Bad Request
422 Error Execute Query

 

Parameters
Path:

Body:


 

Response

Update an existing product by id

Parameters
Path:

Body:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:

Body:


 

Response

Delete a product by id

Parameters
Path:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:


 

Response

Find

Find categories by keyword (name)

Parameters
Path:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:


 

Response

Find products by keyword (name, category, code, cid)

Parameters
Path:

Response
200 Success
404 Not Found
400 Bad Request
422 Error Execute Query

 

Parameters
Path:


 

Response