all repos

onasty @ 10fe031c01c55b5471677cc573d3a83335ce5b05

a one-time notes service

onasty/api/paths/note/note-slug.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
32
33
34
35
36
37
38
39
40
get:
  tags: [Notes]
  summary: Read note
  security:
    - {}

  parameters:
    - name: slug
      in: path
      required: true
      schema:
        type: string

  responses:
    '200':
      $ref: '../../components/responses/NoteGet.yml'
    '404':
      $ref: '../../components/responses/NoteNotFoundMaybeWithContent.yml'


delete:
  tags: [Notes]
  summary: Delete a note
  security:
    - Bearer: []

  parameters:
    - name: slug
      in: path
      required: true
      schema:
        type: string

  responses:
    '204':
      description: Note deleted
    '401':
      description: Unauthorized
    '404':
      $ref: '../../components/responses/NoteNotFound.yml'