github.com/w3security/vervet/v5@v5.3.1-0.20230618081846-5bd9b5d799dc/testdata/conflict-components/projects/2021-06-04/spec.yaml (about) 1 openapi: 3.0.3 2 x-w3security-api-stability: experimental 3 info: 4 title: Registry 5 version: 3.0.0 6 servers: 7 - url: /api/v3 8 description: W3Security Registry 9 components: 10 x-somewhere-else: 11 $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.6.0/components/common.yaml" 12 parameters: 13 Version: 14 name: version 15 in: query 16 required: true 17 description: The requested version of the endpoint to process the request 18 schema: 19 type: number 20 schemas: 21 JsonApi: 22 type: object 23 properties: 24 version: 25 type: string 26 enum: ["1.0"] 27 required: ["version"] 28 additionalProperties: false 29 example: 30 version: "1.0" 31 paths: 32 /orgs/{orgId}/projects: 33 get: 34 description: Get a list of an organization's projects. 35 operationId: getOrgsProjects 36 parameters: 37 - { $ref: "#/components/parameters/Version" } 38 - { 39 $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/parameters/pagination.yaml#/parameters/StartingAfter", 40 } 41 - { 42 $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/parameters/pagination.yaml#/parameters/EndingBefore", 43 } 44 - { 45 $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/parameters/pagination.yaml#/parameters/Limit", 46 } 47 - name: orgId 48 in: path 49 required: true 50 description: The id of the org to return a list of projects 51 schema: 52 type: string 53 - in: query 54 description: The options for filtering the result set 55 name: filters 56 schema: 57 type: object 58 additionalProperties: false 59 properties: 60 name: 61 type: string 62 origin: 63 type: string 64 type: 65 type: string 66 status: 67 type: string 68 enum: 69 - active 70 - inactive 71 "tags.includes": 72 type: array 73 items: 74 type: string 75 "attributes.criticality": 76 type: array 77 items: 78 type: string 79 "attributes.environment": 80 type: array 81 items: 82 type: string 83 "attributes.lifecycle": 84 type: array 85 items: 86 type: string 87 responses: 88 "400": { $ref: "../../../resources/schemas/responses/400.yaml#/400" } 89 "401": 90 { 91 $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/401.yaml#/401", 92 } 93 "404": 94 { 95 $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/404.yaml#/404", 96 } 97 "500": 98 { 99 $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/500.yaml#/500", 100 } 101 "200": 102 description: "A list of projects is returned for the targeted org" 103 headers: 104 w3security-version-requested: 105 { 106 $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionRequestedResponseHeader", 107 } 108 w3security-version-served: 109 { 110 $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionServedResponseHeader", 111 } 112 w3security-request-id: 113 { 114 $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/RequestIdResponseHeader", 115 } 116 content: 117 application/vnd.api+json: 118 schema: 119 type: object 120 properties: 121 jsonapi: { $ref: "#/components/schemas/JsonApi" } 122 data: 123 type: array 124 items: 125 { 126 $ref: "../../../resources/schemas/models/project.yaml#/Project", 127 } 128 links: 129 { 130 $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/common.yaml#/Links", 131 } 132 required: ["jsonapi", "data", "links"] 133 additionalProperties: false