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

Read the architecture guide →

Create feedback

Creates a feedback rating for a Catalog book and returns its generated UUID.

Reviews
POST/api/v1/feedbacks

CreateFeedback creates an individual FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs record for a Catalog book in 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 (POST /rating/api/v1/feedbacks), persists it to Azure Cosmos DB, publishes Feedback createdEventv1.0.0Feedback createdIndicates that a customer feedback rating was created for a book. Rating API publishes this event so Catalog can update ...Ownercatalog-experience-teamSchemaDiagramOpen docs to Kafka, and returns the generated UUIDv7 feedback identifier (200 OK).

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 POST, application/json request and response
Gateway EndpointPOST /rating/api/v1/feedbacks (service path /api/v1/feedbacks)
Authentication & AuthorizationNone enforced (optional Microsoft Entra ID JWT partitions per-user rate limiting when present)
Idempotency / ConcurrencyNot idempotent; Cosmos DB ETag optimistic concurrency on persistence
Rate Limit / CachingGlobal concurrency (100), per-IP fixed-window (30 req/min), and per-user token bucket (30 tokens, +20 per 10s, queue 5); invalidates feedback list and empty summary caches
Contract Version1.0.0 (ApiVersions.V1)

Request & Response Contract

Request Headers

NameTypeRequiredConstraintsDescription
Content-TypestringYesapplication/jsonJSON request media type
AuthorizationstringNoBearer <access-token>Optional Entra ID JWT used to partition per-user rate limiting

Request Body (application/json)

NameTypeRequiredConstraintsDescription
bookIdstring (uuid)YesNon-empty UUID; Cosmos DB partition keyIdentifier of the Catalog book being reviewed
firstNamestringYesNon-empty, max 50 characters; PII-redacted in logsReviewer’s first name
lastNamestringYesNon-empty, max 50 characters; PII-redacted in logsReviewer’s last name
commentstring | nullNoMax 1000 characters when providedOptional written review comment
ratingintegerYesInclusive range 0-5Whole-number star rating for the book

Success Response (200 OK)

NameTypeRequiredConstraintsDescription
Root valuestring (uuid)YesUUIDv7Generated unique identifier of the created feedback record

Behavior & Side Effects

Error Responses

Status / CodeConditionClient Recovery Action
400 Bad RequestEmpty bookId, empty or >50-char firstName/lastName, >1000-char comment, rating outside 0-5, or malformed JSONFix the failing fields and resubmit
409 ConflictCosmos DB conflict or concurrency exceptionRefresh state or verify whether feedback already exists before retrying
429 Too Many RequestsRate limit quota exceeded (Retry-After header included)Wait for the Retry-After interval before retrying
500 Internal Server ErrorUnexpected Cosmos DB, Kafka, or server failure (traceId included)Retry with exponential backoff; inspect service logs using traceId

Create feedback schema

5 properties
Additional properties: not allowed
bookIdstring<uuid>
required

Identifier of the Catalog book being reviewed.

firstNamestring
required

First name of the reviewer.

Min length: 1
Max length: 50
lastNamestring
required

Last name of the reviewer.

Min length: 1
Max length: 50
commentstring | null

Optional written feedback.

Max length: 1000
ratinginteger
required

Rating value from 0 through 5.

Minimum: 0
Maximum: 5