Plan group tree
Plan group tree
If the number of plan group tree elements is greater than specified in the env variable TREE_MAP_SINGLE_REQUEST_MAX_GROUPS_COUNT
, then the tree will be built according to the following principle:
The query returns a list of groups of the 1st nesting level. nesting level you need to specify the group_id of the parent group. Using the has_items parameter, you can determine whether a group contains maps. that this group contains maps. The has_groups parameter can be used to determine whether a group contains nested groups. that this group contains nested groups.
If there are fewer elements of the map tree than in the env variable TREE_MAP_SINGLE_REQUEST_MAX_GROUPS_COUNT
, then the entire tree will be returned in 1 request.
To get a list of maps from a group, you must use a list request maps specifying the group_id parameter VMS Client/Maps/Plans/List of plans
In order to exclude a group from the tree, it is necessary to pass exclude_group_id, in this case this group and all its children will not participate in the formation of the tree structure. For search only by group use parameter search_group=group_name instead of a parameter search
GET /api/v1/maps/tree |
Parameters
integer
group_id, Id of the parent group
string
search, Search by address and map name
string
search_group, Search by address and group name
integer
exclude_group_id, Group id, that must be excluded
200 |
Successful response
JSON
|
401 |
Authorization token not sent or not valid |
422 |
Returns a JSON object with an error.
JSON
|