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

Read the architecture guide →

Update bookv1.0.0 · JSON Schema

Updates an existing book listing, including optional image and catalog relationships.

1{
2	"$schema": "https://json-schema.org/draft/2020-12/schema",
3	"title": "UpdateBook",
4	"description": "Multipart payload for updating a book listing.",
5	"type": "object",
6	"additionalProperties": false,
7	"required": ["id", "name", "price", "categoryId", "publisherId", "authorIds"],
8	"properties": {
9		"id": {
10			"type": "string",
11			"format": "uuid",
12			"description": "Book UUID to update."
13		},
14		"name": {
15			"type": "string",
16			"minLength": 1
17		},
18		"description": {
19			"type": "string"
20		},
21		"image": {
22			"type": ["string", "null"],
23			"contentEncoding": "base64"
24		},
25		"price": {
26			"type": "number",
27			"minimum": 0
28		},
29		"priceSale": {
30			"type": ["number", "null"],
31			"minimum": 0
32		},
33		"categoryId": {
34			"type": "string",
35			"format": "uuid",
36			"description": "A UUID identifying the resource."
37		},
38		"publisherId": {
39			"type": "string",
40			"format": "uuid",
41			"description": "A UUID identifying the resource."
42		},
43		"authorIds": {
44			"type": "array",
45			"items": {
46				"type": "string",
47				"format": "uuid",
48				"description": "A UUID identifying the resource."
49			}
50		},
51		"isRemoveImage": {
52			"type": "boolean",
53			"description": "Remove the existing cover when true."
54		}
55	}
56}
57