Skip to main content

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​

The site's full layout, as nested JSON or as an SVG floor plan depending on the format query parameter.