List categories
GET
/1.0/categories/Retrieves a list of either main categories or subcategories. If an 'id' query parameter is not provided, it returns all main categories. If an 'id' query parameter is provided, it returns all subcategories related to the main category of the given 'id'.
Request
Query Params
id
integer
optional
ID of a main category - to retrieve its subcategories.
Request samples
Responses
A list of categories. The type of categories returned (main or sub) depends on the 'id' query parameter presence.(200)
A list of categories. The type of categories returned (main or sub) depends on the 'id' query parameter presence.
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
$ref(#/definitions/1964752)[]
optional
#/definitions/1964752
optional
Example
Not configured
Last modified: 6 months ago