Get book
Returns one book and its catalog relationships by identifier.
/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
| Property | Value |
|---|---|
| Bounded Context | Catalog |
| Owner Service | 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 |
| Protocol / Format | HTTP GET, application/json response |
| Gateway Endpoint | GET /catalog/api/v1/books/{id} (service path /api/v1/books/{id}) |
| Authentication & Authorization | None required (public read endpoint) |
| Idempotency / Concurrency | Read-only; supports conditional requests via ETag / If-None-Match (304 Not Modified) |
| Rate Limit / Caching | Global 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 Version | 1.0.0 (ApiVersions.V1) |
Request & Response Contract
Path Parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
id | string (uuid) | Yes | Valid UUID | Unique identifier of the book to retrieve |
Success Response (200 OK)
Returns a BookDto JSON object with an ETag response header.
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
id | string (uuid) | Yes | Valid UUID | Unique identifier of the book |
name | string | null | Yes | Nullable | Book title |
description | string | null | Yes | Nullable | Book description |
imageUrl | string | null | Yes | URI or null | Publicly accessible cover image URI |
price | number | Yes | Decimal | Regular unit price |
priceSale | number | null | Yes | Decimal or null | Promotional sale price (null when no discount applies) |
status | string | Yes | Enum: InStock, OutOfStock | Current stock availability status |
category | object | null | Yes | { id: uuid, name: string | null } or null | Assigned book category |
publisher | object | null | Yes | { id: uuid, name: string | null } or null | Assigned publisher |
authors | object[] | Yes | Array of { id: uuid, name: string | null } | Authors associated with the book |
averageRating | number | Yes | >= 0 | Derived average customer rating projected from Reviews |
totalReviews | integer | Yes | >= 0 | Derived 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
ETagheader 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 / Code | Condition | Client Recovery Action |
|---|---|---|
304 Not Modified | Request included a matching If-None-Match ETag header | Reuse the client’s cached book payload |
404 Not Found | No active book exists for the supplied UUID | Render a not-found state; do not fabricate an empty book |
429 Too Many Requests | Rate limit quota exceeded (Retry-After header included) | Wait for the Retry-After duration before retrying |
Related Documentation
- 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.
- BookEntityv1.0.0BookCanonical sellable title in the product catalog, encapsulating descriptive metadata, pricing, stock availability, taxono...Ownercatalog-experience-teamOpen docs — Book entity model.
- List booksQueryv1.0.0List booksReturns a filterable collection of books with pricing, availability, relationships, and rating summaries.Ownercatalog-experience-teamSchemaDiagramOpen docs — Search, filter, and paginate books.
- Get book details over gRPCQueryv1.0.0Get book details over gRPCReturns full Catalog book details by identifier through the book.v1 gRPC contract.Ownercatalog-experience-teamSchemaDiagramOpen docs — Internal gRPC contract returning full book details.
- Update bookCommandv1.0.0Update bookUpdates an existing book listing, including optional image and catalog relationships.Ownercatalog-experience-teamSchemaDiagramOpen docs — Update book details using the
ETagreturned by this query.
Get book schema
Book representation returned by the Catalog API.
not allowedA UUID identifying the resource.
InStock OutOfStock00