List all categories
GET
/categories
const url = 'http://localhost/categories';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost/categoriesParameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer format: int32
How many categories to return at one time (max 100)
offset
integer format: int32
The number of categories to skip before starting to collect the result set
Responses
Section titled “Responses”A paged array of categories
Media typeapplication/json
Array<object>
object
id
required
integer format: int64
name
required
string
parent
object recursive
children
Array<object> recursive
Examplegenerated
[ { "id": 1, "name": "example", "parent": {}, "children": [] }]default
Section titled “default”Unexpected error
Media typeapplication/json
object
code
required
integer format: int32
message
required
string
Examplegenerated
{ "code": 1, "message": "example"}