GET /api/categories

Description

Returns list of categories

Parameters

tree

Int. Optional. 0/1. If 1, returns categories as a tree structure. Otherwise, simply a flat array. Default 0.

view

String. Optional. "simple"/"full". Whether to get simple or full versions of the objects. Default "simple".

Return

Array of Category objects.

Security

Superuser, manager, person

GET /api/categories/[category_id]

Description

Returns single category

Parameters

view

String. Optional. "simple"/"full". Whether to get simple or full versions of the object. Default "full".

Return

Category object.

Security

Superuser, manager, person