File: security_override.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 (41 lines) | stat: -rw-r--r-- 843 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
openapi: "3.1.0"
info:
  title: Minimal OpenAPI specification with security override
  version: "0.1"
security:
  - api_key: []
paths:
  /resource/{resId}:
    parameters:
      - name: resId
        in: path
        required: true
        description: the ID of the resource to retrieve
        schema:
          type: string
    get:
      responses:
        default:
          description: Default security.
    post:
      security:
        - petstore_auth:
            - write:pets
            - read:pets
      responses:
        default:
          description: Override security.
    put:
      security: []
      responses:
        default:
          description: Remove security.
components:
  securitySchemes:
    api_key:
      type: apiKey
      name: api_key
      in: query
    petstore_auth:
      type: http
      scheme: basic