51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
post:
|
|
tags:
|
|
- Recipe
|
|
summary: "Add a recipe"
|
|
operationId: "addRecipe"
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "../schemas/Recipe.yaml"
|
|
examples:
|
|
recipeIn:
|
|
$ref: "../examples/HummusV1In.yaml"
|
|
required: true
|
|
responses:
|
|
200:
|
|
description: OK
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
$ref: "../schemas/Recipe.yaml"
|
|
examples:
|
|
recipeOut:
|
|
$ref: "../examples/HummusV1Out.yaml"
|
|
400:
|
|
description: Bad Request
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
$ref: "../schemas/ProblemDetail.yaml"
|
|
401:
|
|
description: Unauthorized
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
$ref: "../schemas/ProblemDetail.yaml"
|
|
403:
|
|
description: Forbidden
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
$ref: "../schemas/ProblemDetail.yaml"
|
|
404:
|
|
description: Not Found
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
$ref: "../schemas/ProblemDetail.yaml"
|
|
security:
|
|
- httpBasic: [ ]
|