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

Read the architecture guide →

List feedbacks

Returns feedback for a book with pagination, sorting, and validation responses.

Reviews
GET/api/v1/feedbacks

ListFeedbacks queries Rating APIServicev1.0.0Rating APIInternal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog book...PublishesFeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEventSubscribesCreateFeedback, DeleteFeedback +3APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs (GET /rating/api/v1/feedbacks) for a paginated, sorted page of customer feedback records belonging to a single Catalog book. The endpoint is publicly readable, caches pages for 10 minutes, and emits total counts and navigation links in HTTP response headers.

Overview

PropertyValue
Bounded ContextReviews
Owner ServiceRating APIServicev1.0.0Rating APIInternal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog book...PublishesFeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEventSubscribesCreateFeedback, DeleteFeedback +3APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs
Protocol / FormatHTTP GET, application/json response
Gateway EndpointGET /rating/api/v1/feedbacks (service path /api/v1/feedbacks)
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 for 10 minutes tagged by BookId
Contract Version1.0.0 (ApiVersions.V1)

Request & Response Contract

Query Parameters

NameTypeRequiredConstraintsDescription
BookIdstring (uuid)YesValid UUIDIdentifier of the Catalog book whose feedback records are returned
PageIndexintegerNoDefault 1; must be > 01-based page number to retrieve
PageSizeintegerNoDefault 20; must be > 0Maximum number of feedback records per page
OrderBystringNoDefault "Rating"; supports Rating and CreatedAt (others fall back to Rating)Field used to sort feedback records
IsDescendingbooleanNoDefault falseSorts descending when true and ascending when false

Response Headers (200 OK)

NameTypeRequiredConstraintsDescription
Pagination-CountstringYesInteger string (e.g., 42)Total number of feedback records matching BookId across all pages
LinkstringYesComma-separated <uri>;rel=<rel> entriesNavigation URIs with first, self, last, and conditional previous / next relations preserving query filters

Success Response (200 OK)

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

NameTypeRequiredConstraintsDescription
[].idstring (uuid)YesValid UUIDUnique identifier of the feedback record
[].firstNamestring | nullYesNullableFirst name of the reviewer
[].lastNamestring | nullYesNullableLast name of the reviewer
[].commentstring | nullYesNullableWritten review text left by the reviewer
[].ratinginteger | stringYes0-5Numeric star rating submitted by the reviewer
[].bookIdstring (uuid)YesValid UUIDIdentifier of the reviewed Catalog book

Behavior & Side Effects

  • Read-through caching: Queries Azure Cosmos DB (ratingdb/feedbacks, partition key /bookId) and caches paginated results for 10 minutes; invalidated on feedback creation or deletion.
  • No state mutation: Pure read query with no database writes or integration events.

Error Responses

Status / CodeConditionClient Recovery Action
400 Bad RequestMissing/malformed BookId or invalid PageIndex/PageSize (<= 0)Correct invalid query parameters; do not retry unchanged
429 Too Many RequestsRate limit quota exceeded (Retry-After header included)Wait for the Retry-After duration before retrying
  • Rating APIServicev1.0.0Rating APIInternal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog book...PublishesFeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEventSubscribesCreateFeedback, DeleteFeedback +3APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs — Service overview, Azure Cosmos DB storage, and endpoints.
  • FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs — Feedback document model.
  • Summarize feedbackQueryv1.0.0Summarize feedbackReturns a generated feedback summary, classification, rating metrics, evidence, and confidence for a book.Ownercatalog-experience-teamSchemaDiagramOpen docs — Generate an AI summary and classification for a book’s feedback.
  • Create feedbackCommandv1.0.0Create feedbackCreates a feedback rating for a Catalog book and returns its generated UUID.Ownercatalog-experience-teamSchemaDiagramOpen docs — Submit a new customer feedback record.

List feedbacks schema

6 properties
Array Schemaarray[object]

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

Feedback records returned for a Catalog book.

Additional properties: not allowed
idstring<uuid>
required

Unique identifier of the feedback record.

firstNamestring | null
required

First name of the reviewer.

lastNamestring | null
required

Last name of the reviewer.

commentstring | null
required

Written feedback left by the reviewer.

ratinginteger | string<int32>
required

Rating value from 0 through 5.

bookIdstring<uuid>
required

Identifier of the reviewed Catalog book.