github.com/snyk/vervet/v5@v5.11.1-0.20240202085829-ad4dd7fb6101/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: Snyk Registry 8 paths: 9 /openapi: 10 get: 11 description: List available versions of OpenAPI specification 12 operationId: listAPIVersions 13 responses: 14 '400': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/400.yaml#/400' } 15 '401': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/401.yaml#/401' } 16 '404': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/404.yaml#/404' } 17 '500': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/500.yaml#/500' } 18 '200': 19 description: 'List of available versions is returned' 20 headers: 21 snyk-version-requested: { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionRequestedResponseHeader' } 22 snyk-version-served: { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionServedResponseHeader' } 23 snyk-request-id: { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/headers/headers.yaml#/RequestIdResponseHeader' } 24 content: 25 application/vnd.api+json: 26 schema: 27 type: array 28 items: 29 type: string 30 /openapi/{version}: 31 get: 32 description: Get OpenAPI specification effective at version. 33 operationId: getAPIVersion 34 parameters: 35 - name: version 36 description: The requested version of the API 37 in: path 38 required: true 39 schema: 40 type: string 41 responses: 42 '400': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/400.yaml#/400' } 43 '401': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/401.yaml#/401' } 44 '404': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/404.yaml#/404' } 45 '500': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/500.yaml#/500' } 46 '200': 47 description: 'OpenAPI specification matching requested version is returned' 48 headers: 49 snyk-version-requested: { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionRequestedResponseHeader' } 50 snyk-version-served: { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionServedResponseHeader' } 51 snyk-request-id: { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/headers/headers.yaml#/RequestIdResponseHeader' } 52 content: 53 application/x-yaml: 54 schema: 55 type: object 56 application/vnd.api+json: 57 schema: 58 type: object