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

Read the architecture guide →

Create bookv1.0.0 · JSON Schema

Creates a book listing and returns its generated UUID.

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