cURL
curl --request GET \ --url http://localhost:3001/plants/{id}/hierarchy \ --header 'Authorization: Bearer <token>'
{ "id": 123, "name": "<string>", "parent": "<unknown>", "children": "<array>", "siblings": "<array>" }
Get the plant hierarchy showing parent-child relationships
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the plant
Plant hierarchy with circular references
Plant with hierarchical relationships - demonstrates circular reference
Unique identifier for the plant
Name of the plant
Parent plant
Show child attributes
Child plants
Sibling plants
Was this page helpful?