Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

List categories

Returns all categories known to the Catalog.

Catalog Management
GET/api/v1/categories

ListCategories queries Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs (GET /catalog/api/v1/categories) to return all registered book categories as an unpaginated JSON array. The endpoint is publicly readable, returns [] with 200 OK when no categories exist, and caches the taxonomy.

Overview

PropertyValue
Bounded ContextCatalog
Owner ServiceCatalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs
Protocol / FormatHTTP GET, application/json response
Gateway EndpointGET /catalog/api/v1/categories (service path /api/v1/categories)
Authentication & AuthorizationNone required (public read endpoint)
Idempotency / ConcurrencyRead-only and naturally idempotent
Rate Limit / CachingGlobal concurrency (100), per-IP fixed-window (30 req/min), and per-user token bucket (30 limit, 20 per 10s, queue 5); cached in L1 + Redis L2
Contract Version1.0.0 (ApiVersions.V1)

Request & Response Contract

Request Parameters

Accepts no path parameters, query parameters, or request body.

Success Response (200 OK)

Returns a JSON array of category objects (additionalProperties: false).

NameTypeRequiredConstraintsDescription
[].idstring (uuid)YesValid UUIDUnique identifier of the category
[].namestring | nullYesNullableCategory display name (null when unset)

Behavior & Side Effects

  • Read-through caching: Serves the category taxonomy from L1/Redis L2 cache and invalidates when categories are created, updated, or deleted.
  • No state mutation: Pure read query with no database writes or integration events.

Error Responses

Status / CodeConditionClient Recovery Action
429 Too Many RequestsRate limit quota exceeded (Retry-After header included)Wait for the Retry-After duration before retrying
  • Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs — Service overview, persistence, and endpoints.
  • CategoryEntityv1.0.0CategorySingle-level taxonomy classification grouping books by subject or genre within the product catalog.Ownercatalog-experience-teamOpen docs — Category entity model.
  • List categories over gRPCQueryv1.0.0List categories over gRPCReturns all Catalog categories through the book.v1 gRPC contract.Ownercatalog-experience-teamSchemaDiagramOpen docs — Internal gRPC contract used by MCP Tools.
  • Create categoryCommandv1.0.0Create categoryCreates a category in the Catalog.Ownercatalog-experience-teamSchemaDiagramOpen docs — Create a new catalog category.

List categories schema

2 properties
Array Schemaarray[object]

This schema defines an array of objects. Each item in the array has the properties shown below.

Collection of categories returned by the Catalog API.

Additional properties: not allowed
idstring<uuid>
required

A UUID identifying the resource.

namestring | null
required

Categorie display name.