aboutsummaryrefslogtreecommitdiff
path: root/sem7/dist/lec1/openapi.yaml
blob: ab547f06b3f8d3f108355858151d6fa53c940c60 (plain)
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
openapi: 3.0.3
info:
  title: open file
  version: '1.0'
servers:
  - url: 'http://localhost:8080'
paths:
  /read/{filename}:
    get:
      operationId: getFile
      responses:
        '201':
          description: Ok here is the file
          content:
            'application/json':
              schema:
                type: string
        '404':
          description: File not found
          content:
            'application/json':
              schema:
                type: string
      parameters:
        - name: filename
          in: path
          description: Name of file to read
          required: true
          schema:
            type: string