Get the category tree for department navigation
GET/categories
Relays product-discovery GET /categories unchanged: the category tree with purchasable counts, shaped {version, categories: [{categoryId, parentId (null on a root), name, path, purchasableCount}]}. It takes no parameters; anything in the query string is dropped. The page uses it to show department names for the categoryId filter of GET /products. The tree is one bounded navigation document, not a resource collection.
Responses
- 200
- 503
- 504
The upstream answer, relayed unchanged.
An RFC 9457 problem. Upstream problems are relayed unchanged; the edge adds validation-failed, session-required, malformed-request, payload-too-large, upstream-unavailable (503), gateway-timeout (504), route-not-allowed (500), internal-error (500) and client-closed-request (499, the caller went away). Any route also answers 404 resource-not-found for a path it does not serve (or one containing NUL) and 405 method-not-allowed for a wrong method.
An RFC 9457 problem. Upstream problems are relayed unchanged; the edge adds validation-failed, session-required, malformed-request, payload-too-large, upstream-unavailable (503), gateway-timeout (504), route-not-allowed (500), internal-error (500) and client-closed-request (499, the caller went away). Any route also answers 404 resource-not-found for a path it does not serve (or one containing NUL) and 405 method-not-allowed for a wrong method.