Skip to content

Commit

Permalink
update openapi.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
flo-hauser committed Feb 21, 2024
1 parent cabb79e commit 4c5c8f0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,38 @@ paths:
"401":
$ref: "#/components/responses/UnauthorizedError"

/recipes/search/random:
get:
summary: get random recipes
description: get random recipes count limited by query parameter
operationId: get_random_recipes
tags:
- recipes
security:
- bearerAuth: []
parameters:
- in: query
name: limit
schema:
type: integer
format: int32
minimum: 1
maximum: 100
required: true
responses:
"200":
description: recipes
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Recipe"
"400":
$ref: "#/components/responses/BadRequestError"
"401":
$ref: "#/components/responses/UnauthorizedError"

/recipes/{recipe_id}/image:
put:
summary: update recipe image
Expand Down

0 comments on commit 4c5c8f0

Please sign in to comment.