Skip to main content

Module hierarchy_handler

Module hierarchy_handler 

Source
Expand description

Non-CRUD HTTP surface for entity hierarchy reads.

Hand-authored (user-owned; see metaphor.codegen.yaml). Wraps HierarchyService: GET /accounts/:id/hierarchy GET /cost-centers/:id/hierarchy GET /fiscal-periods/:id/hierarchy

Each returns the ancestor chain (root → self) so a client can show where the entity sits in its tree without walking parent links itself.

Tenancy (ADR-0029): the wire carries no tenant parameter. The composing service’s tenancy decorator scopes the read from the request’s own scope, so a company in the query string could only agree with it or contradict it.

Functions§

create_hierarchy_routes
Route composer for the three hierarchy endpoints.