all repos

onasty @ 7dbb390c92161e9e45ec8715bbc8071061f9d85a

a one-time notes service

onasty/api/paths/note/note.yml (view raw)

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