Merge pull request #1 from fabian222222/master

add habit post
This commit is contained in:
Julien Palard 2021-11-16 08:37:44 +01:00 committed by GitHub
commit f1efca1f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,6 +157,24 @@ paths:
401:
description: Unauthorized
content: {}
post:
summary: New habit
description: Add new habit
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Habit'
responses:
201:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Habit'
401:
description: Unauthorized
content: {}
/habits/{habit_id}/done/:
parameters: