add habit post
This commit is contained in:
parent
ba73136581
commit
ccd19135ed
|
@ -157,6 +157,24 @@ paths:
|
||||||
401:
|
401:
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
content: {}
|
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/:
|
/habits/{habit_id}/done/:
|
||||||
parameters:
|
parameters:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user