docs: add OpenAPI documentation

This commit is contained in:
2025-08-12 17:29:02 +02:00
parent cd91ac11f9
commit aab7ff1452
25 changed files with 2422 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
type: "object"
properties:
id:
$ref: "./Id.yaml"
readOnly: true
description: "Unique identifier of the recipe"
name:
$ref: "./NonBlankString.yaml"
description: "Name"
description:
$ref: "./NonBlankString.yaml"
description: "Description"
changedAt:
$ref: "./DateTime.yaml"
readOnly: true
description: "Last point in time when the recipe was changed"
categories:
type: "array"
items:
$ref: "./NonBlankString.yaml"
description: "Category names"
ingredients:
type: "array"
minItems: 1
items:
$ref: "./NonBlankString.yaml"
description: "Step descriptions"
steps:
type: "array"
minItems: 1
items:
$ref: "./NonBlankString.yaml"
description: "Ingredient names"
required:
- name
- description
- categories
- ingredients
- steps