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

Read the architecture guide →

Get book

Returns one book and its catalog relationships by identifier.

Catalog Management
GET/api/v1/books/{id}

GetBook 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/books/{id}) to retrieve a single book’s full projection, including pricing, stock status, category, publisher, authors, and derived rating summary. The endpoint is publicly readable, supports HTTP ETag conditional requests, and caches book details.

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/books/{id} (service path /api/v1/books/{id})
Authentication & AuthorizationNone required (public read endpoint)
Idempotency / ConcurrencyRead-only; supports conditional requests via ETag / If-None-Match (304 Not Modified)
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

Path Parameters

NameTypeRequiredConstraintsDescription
idstring (uuid)YesValid UUIDUnique identifier of the book to retrieve

Success Response (200 OK)

Returns a BookDto JSON object with an ETag response header.

NameTypeRequiredConstraintsDescription
idstring (uuid)YesValid UUIDUnique identifier of the book
namestring | nullYesNullableBook title
descriptionstring | nullYesNullableBook description
imageUrlstring | nullYesURI or nullPublicly accessible cover image URI
pricenumberYesDecimalRegular unit price
priceSalenumber | nullYesDecimal or nullPromotional sale price (null when no discount applies)
statusstringYesEnum: InStock, OutOfStockCurrent stock availability status
categoryobject | nullYes{ id: uuid, name: string | null } or nullAssigned book category
publisherobject | nullYes{ id: uuid, name: string | null } or nullAssigned publisher
authorsobject[]YesArray of { id: uuid, name: string | null }Authors associated with the book
averageRatingnumberYes>= 0Derived average customer rating projected from Reviews
totalReviewsintegerYes>= 0Derived total feedback count projected from Reviews

Behavior & Side Effects

  • Read-through caching: Serves cached book details from L1/Redis L2 and invalidates automatically on book, author, category, publisher, or rating updates.
  • ETag concurrency support: Returns the book’s row version as an ETag header for conditional reads (If-None-Match) and optimistic concurrency updates via Update bookCommandv1.0.0Update bookUpdates an existing book listing, including optional image and catalog relationships.Ownercatalog-experience-teamSchemaDiagramOpen docs.
  • No state mutation: Pure read query with no database writes or integration events.

Error Responses

Status / CodeConditionClient Recovery Action
304 Not ModifiedRequest included a matching If-None-Match ETag headerReuse the client’s cached book payload
404 Not FoundNo active book exists for the supplied UUIDRender a not-found state; do not fabricate an empty book
429 Too Many RequestsRate limit quota exceeded (Retry-After header included)Wait for the Retry-After duration before retrying

Get book schema

18 properties

Book representation 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