add habit post

This commit is contained in:
Fabian 2021-11-15 15:58:34 +01:00
parent ba73136581
commit ccd19135ed
1 changed files with 18 additions and 0 deletions

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: