File: links.yaml

package info (click to toggle)
python-openapi-core 0.19.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,008 kB
  • sloc: python: 18,868; makefile: 47
file content (48 lines) | stat: -rw-r--r-- 1,084 bytes parent folder | download
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
41
42
43
44
45
46
47
48
openapi: "3.1.0"
info:
  title: Minimal valid OpenAPI specification
  version: "0.1"
paths:
  /linked/noParam:
    get:
      operationId: noParOp
      responses:
        default:
          description: the linked result
  /linked/withParam:
    get:
      operationId: paramOp
      parameters:
        - name: opParam
          in: query
          description: test
          schema:
            type: string
      responses:
        default:
          description: the linked result
  /status:
    get:
      responses:
        default:
          description: Return something
          links:
            noParamLink:
              operationId: noParOp
  /status/{resourceId}:
    get:
      parameters:
        - name: resourceId
          in: path
          required: true
          schema:
            type: string
      responses:
        default:
          description: Return something else
          links:
            paramLink:
              operationId: paramOp
              parameters:
                opParam: $request.path.resourceId
              requestBody: test