Get a site's full drawable layout
GET/sites/:siteCode/layout
The primary "draw the warehouse" endpoint. Returns the whole structure of one Site as a single nested document — zones → aisles → location slots — with every slot's exploded coordinates, type, capacity and status. Zones come back ordered by id, aisles in SequenceHint walk order (not registration order), and slots ordered bay → level → position, so a frontend can render a floor plan directly with no client-side joining or sorting.
With ?format=svg the identical read model is rendered server-side as a minimal SVG floor plan (one coloured band per zone, one row of rects per aisle, colour = temperature class / hazmat) that a human can curl straight into a .svg file and open in a browser.
This is a PROJECTION assembled by querying across the aggregates, not separately stored state. It performs no writes and publishes no events.
Request
Responses
- 200
- 400
- 404
- 500
The site's full layout, as nested JSON or as an SVG floor plan depending on the format query parameter.
Malformed input: a body that is not valid JSON, a location code that is not seven [A-Z0-9] segments, a missing required identifier, a query parameter outside its documented enum, an invalid limit / cursor or an undeclared query parameter on a paged collection, or a missing / malformed Idempotency-Key on a POST.
The named site, zone, aisle, slot, location type or placement rule does not exist.
An unexpected failure, e.g. the datastore is unavailable.