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

Read the architecture guide →

Create feedbackv1.0.0 · JSON Schema

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

1{
2	"$schema": "https://json-schema.org/draft/2020-12/schema",
3	"title": "CreateFeedbackCommand",
4	"type": "object",
5	"additionalProperties": false,
6	"required": ["bookId", "firstName", "lastName", "rating"],
7	"properties": {
8		"bookId": {
9			"type": "string",
10			"format": "uuid",
11			"description": "Identifier of the Catalog book being reviewed."
12		},
13		"firstName": {
14			"type": "string",
15			"minLength": 1,
16			"maxLength": 50,
17			"description": "First name of the reviewer."
18		},
19		"lastName": {
20			"type": "string",
21			"minLength": 1,
22			"maxLength": 50,
23			"description": "Last name of the reviewer."
24		},
25		"comment": {
26			"type": ["string", "null"],
27			"maxLength": 1000,
28			"description": "Optional written feedback."
29		},
30		"rating": {
31			"type": "integer",
32			"minimum": 0,
33			"maximum": 5,
34			"description": "Rating value from 0 through 5."
35		}
36	}
37}
38