all repos

onasty @ 164a37ba21c3c0c386d8d388b5e54844e3991f62

a one-time notes service

onasty/api/paths/note/note-slug-expires.yml (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
api: add openapi docs (#181)..., 9 months ago
1
patch:
2
  tags: [Notes]
3
  summary: Change note's expiration time
4
  security:
5
    - Bearer: []
6
7
  parameters:
8
    - name: slug
9
      in: path
10
      required: true
11
      schema:
12
        type: string
13
14
  requestBody:
15
    required: true
16
    content:
17
      application/json:
18
        schema:
19
          type: object
20
          properties:
21
            expires_at:
22
              type: string
23
              format: date-time
24
            keep_before_expiration:
25
              type: boolean
26
27
  responses:
28
    '200':
29
      description: Note updated
30
    '400':
31
      $ref: '../../components/responses/ErrorResponse.yml'
32
    '401':
33
      description: Unauthorized
34
    '404':
35
      $ref: '../../components/responses/NoteNotFound.yml'