Skip to content

Commit

Permalink
Added data model for OpenAPI documentation to POST/PUT of animal adop…
Browse files Browse the repository at this point in the history
  • Loading branch information
csterwa authored Apr 20, 2021
1 parent b3f8515 commit 4f5bb8c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions backend/k8s/animal-rescue-backend-route-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,20 @@ spec:
- Method=POST,PUT,DELETE
tags:
- "pet adoption"
model:
requestBody:
description: Manage adoption requests
content:
'application/json':
schema:
type: object
description: Adoption request schema
properties:
adopterName:
type: string
email:
type: string
format: email
notes:
type: string
required: [ "adopterName", "email" ]

0 comments on commit 4f5bb8c

Please sign in to comment.