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

Read the architecture guide →

List books

Returns a filterable collection of books with pricing, availability, relationships, and rating summaries.

Catalog Management
QUERY/api/v1/books

ListBooks 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 (QUERY /catalog/api/v1/books) with an optional JSON request body to search, filter, sort, and paginate catalog books. The endpoint is publicly readable, uses hybrid vector search when search is supplied, caches results, and emits total counts and navigation links in HTTP response headers.

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 QUERY, application/json request and response
Gateway EndpointQUERY /catalog/api/v1/books (service path /api/v1/books)
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); caches search IDs (5 min) and filtered pages (60s)
Contract Version1.0.0 (ApiVersions.V1)

Request & Response Contract

Request Body (application/json, optional)

Omitting the request body applies all defaults below.

NameTypeRequiredConstraintsDescription
pageIndexintegerNoDefault 1; must be > 01-based page number to retrieve
pageSizeintegerNoDefault 20; must be > 0Maximum number of books per page (also caps vector search candidate count)
orderBystring | nullNoDefault "Name"; supports Name, Price.OriginalPrice, Price.DiscountPrice, StatusField used to sort results (unknown values fall back to Name; ties ordered by ID)
isDescendingbooleanNoDefault falseSorts descending when true and ascending when false
searchstring | nullNoTrimmed, lowercased for cache keyFree-text query executed via hybrid vector search; returns empty page if zero vector hits match
minPricenumber | nullNoDecimalInclusive minimum price filter
maxPricenumber | nullNoDecimalInclusive maximum price filter
categoryIdstring[] | nullNoArray of UUIDsRestricts results to books matching any supplied category ID
publisherIdstring[] | nullNoArray of UUIDsRestricts results to books matching any supplied publisher ID
authorIdsstring[] | nullNoArray of UUIDsRestricts results to books associated with any supplied author ID

Response Headers (200 OK)

NameTypeRequiredConstraintsDescription
Pagination-CountstringYesInteger string (e.g., 84)Total number of books matching the active filters across all pages
LinkstringYesComma-separated <uri>;rel=<rel> entriesNavigation URIs with first, self, last, and conditional previous / next relations

Success Response (200 OK)

Returns a JSON array of book objects ([] when no books match). Each item matches the response schema documented in Get bookQueryv1.0.0Get bookReturns one book and its catalog relationships by identifier.Ownercatalog-experience-teamSchemaDiagramOpen docs.

Behavior & Side Effects

  • Hybrid vector search: When search is non-empty, executes a hybrid vector search against Qdrant and filters matching book IDs from PostgreSQL.
  • Two-tier caching: Caches vector search ID lists for 5 minutes and filtered page results for 60 seconds; invalidated on catalog mutations.
  • No state mutation: Pure read query with no database writes or integration events.

Error Responses

Status / CodeConditionClient Recovery Action
400 Bad RequestpageIndex <= 0, pageSize <= 0, malformed UUID in filter arrays, or invalid JSON payloadFix request body values; do not retry unchanged
429 Too Many RequestsRate limit quota exceeded (Retry-After header included)Wait for the Retry-After duration before retrying

List books schema

18 properties
Array Schemaarray[object]

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

Book collection returned by the Catalog API.

Additional properties: not allowed
idstring<uuid>
required

A UUID identifying the resource.

namestring | null
required
descriptionstring | null
required
imageUrlstring | null<uri>
required
pricenumber
required
priceSalenumber | null
required
statusstring
required
Allowed values: InStock OutOfStock
categoryobject | null
required
publisherobject | null
required
authorsarray[object]
required
averageRatingnumber
required
Minimum: 0
totalReviewsinteger
required
Minimum: 0