onasty/api/paths/note/note.yml(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
post:
tags: [Notes]
summary: Create note
security:
- Bearer: []
- {}
requestBody:
required: true
content:
application/json:
schema:
$ref: '../../components/requests/CreateNote.yml'
responses:
'201':
$ref: '../../components/responses/NoteCreated.yml'
'400':
$ref: '../../components/responses/ErrorResponse.yml'
get:
tags: [Notes]
summary: Get all note created by user
security:
- Bearer: []
responses:
'200':
$ref: '../../components/responses/NoteGetAll.yml'
'401':
description: Unauthorized
|