github.com/w3security/vervet/v5@v5.3.1-0.20230618081846-5bd9b5d799dc/testdata/resources/include.yaml (about)

     1  openapi: 3.0.3
     2  info:
     3    title: Registry
     4    version: 3.0.0
     5  servers:
     6    - url: /api/v3
     7      description: W3Security Registry
     8  paths:
     9    /openapi:
    10      get:
    11        description: List available versions of OpenAPI specification
    12        operationId: listAPIVersions
    13        responses:
    14          "400":
    15            {
    16              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/400.yaml#/400",
    17            }
    18          "401":
    19            {
    20              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/401.yaml#/401",
    21            }
    22          "404":
    23            {
    24              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/404.yaml#/404",
    25            }
    26          "500":
    27            {
    28              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/500.yaml#/500",
    29            }
    30          "200":
    31            description: "List of available versions is returned"
    32            headers:
    33              w3security-version-requested:
    34                {
    35                  $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionRequestedResponseHeader",
    36                }
    37              w3security-version-served:
    38                {
    39                  $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionServedResponseHeader",
    40                }
    41              w3security-request-id:
    42                {
    43                  $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/RequestIdResponseHeader",
    44                }
    45            content:
    46              application/vnd.api+json:
    47                schema:
    48                  type: array
    49                  items:
    50                    type: string
    51    /openapi/{version}:
    52      get:
    53        description: Get OpenAPI specification effective at version.
    54        operationId: getAPIVersion
    55        parameters:
    56          - name: version
    57            description: The requested version of the API
    58            in: path
    59            required: true
    60            schema:
    61              type: string
    62        responses:
    63          "400":
    64            {
    65              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/400.yaml#/400",
    66            }
    67          "401":
    68            {
    69              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/401.yaml#/401",
    70            }
    71          "404":
    72            {
    73              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/404.yaml#/404",
    74            }
    75          "500":
    76            {
    77              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/500.yaml#/500",
    78            }
    79          "200":
    80            description: "OpenAPI specification matching requested version is returned"
    81            headers:
    82              w3security-version-requested:
    83                {
    84                  $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionRequestedResponseHeader",
    85                }
    86              w3security-version-served:
    87                {
    88                  $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionServedResponseHeader",
    89                }
    90              w3security-request-id:
    91                {
    92                  $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/RequestIdResponseHeader",
    93                }
    94            content:
    95              application/x-yaml:
    96                schema:
    97                  type: object
    98              application/vnd.api+json:
    99                schema:
   100                  type: object