github.com/Axway/agent-sdk@v1.1.101/pkg/apic/testdata/swagger2.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "version": "2019-10-28T22:42:47Z", 5 "title": "PetStore" 6 }, 7 "host": "90kj0hipjh.execute-api.eu-west-2.amazonaws.com", 8 "basePath": "/prod", 9 "schemes": [ 10 "https" 11 ], 12 "paths": { 13 "/": { 14 "get": { 15 "consumes": [ 16 "application/json" 17 ], 18 "produces": [ 19 "text/html" 20 ], 21 "responses": { 22 "200": { 23 "description": "200 response", 24 "headers": { 25 "Content-Type": { 26 "type": "string" 27 } 28 } 29 } 30 }, 31 "security": [ 32 { 33 "api_key": [] 34 } 35 ] 36 } 37 }, 38 "/pets": { 39 "get": { 40 "produces": [ 41 "application/json" 42 ], 43 "parameters": [ 44 { 45 "name": "type", 46 "in": "query", 47 "required": false, 48 "type": "string" 49 }, 50 { 51 "name": "page", 52 "in": "query", 53 "required": false, 54 "type": "string" 55 } 56 ], 57 "responses": { 58 "200": { 59 "description": "200 response", 60 "schema": { 61 "$ref": "#/definitions/Pets" 62 }, 63 "headers": { 64 "Access-Control-Allow-Origin": { 65 "type": "string" 66 } 67 } 68 } 69 } 70 }, 71 "post": { 72 "operationId": "CreatePet", 73 "consumes": [ 74 "application/json" 75 ], 76 "produces": [ 77 "application/json" 78 ], 79 "parameters": [ 80 { 81 "in": "body", 82 "name": "NewPet", 83 "required": true, 84 "schema": { 85 "$ref": "#/definitions/NewPet" 86 } 87 } 88 ], 89 "responses": { 90 "200": { 91 "description": "200 response", 92 "schema": { 93 "$ref": "#/definitions/NewPetResponse" 94 }, 95 "headers": { 96 "Access-Control-Allow-Origin": { 97 "type": "string" 98 } 99 } 100 } 101 } 102 }, 103 "options": { 104 "consumes": [ 105 "application/json" 106 ], 107 "produces": [ 108 "application/json" 109 ], 110 "responses": { 111 "200": { 112 "description": "200 response", 113 "schema": { 114 "$ref": "#/definitions/Empty" 115 }, 116 "headers": { 117 "Access-Control-Allow-Origin": { 118 "type": "string" 119 }, 120 "Access-Control-Allow-Methods": { 121 "type": "string" 122 }, 123 "Access-Control-Allow-Headers": { 124 "type": "string" 125 } 126 } 127 } 128 } 129 } 130 }, 131 "/pets/{petId}": { 132 "get": { 133 "operationId": "GetPet", 134 "produces": [ 135 "application/json" 136 ], 137 "parameters": [ 138 { 139 "name": "petId", 140 "in": "path", 141 "required": true, 142 "type": "string" 143 } 144 ], 145 "responses": { 146 "200": { 147 "description": "200 response", 148 "schema": { 149 "$ref": "#/definitions/Pet" 150 }, 151 "headers": { 152 "Access-Control-Allow-Origin": { 153 "type": "string" 154 } 155 } 156 } 157 } 158 }, 159 "options": { 160 "consumes": [ 161 "application/json" 162 ], 163 "produces": [ 164 "application/json" 165 ], 166 "parameters": [ 167 { 168 "name": "petId", 169 "in": "path", 170 "required": true, 171 "type": "string" 172 } 173 ], 174 "responses": { 175 "200": { 176 "description": "200 response", 177 "schema": { 178 "$ref": "#/definitions/Empty" 179 }, 180 "headers": { 181 "Access-Control-Allow-Origin": { 182 "type": "string" 183 }, 184 "Access-Control-Allow-Methods": { 185 "type": "string" 186 }, 187 "Access-Control-Allow-Headers": { 188 "type": "string" 189 } 190 } 191 } 192 } 193 } 194 } 195 }, 196 "securityDefinitions": { 197 "api_key": { 198 "type": "apiKey", 199 "name": "x-api-key", 200 "in": "header" 201 } 202 }, 203 "definitions": { 204 "Pets": { 205 "type": "array", 206 "items": { 207 "$ref": "#/definitions/Pet" 208 } 209 }, 210 "Empty": { 211 "type": "object" 212 }, 213 "NewPetResponse": { 214 "type": "object", 215 "properties": { 216 "pet": { 217 "$ref": "#/definitions/Pet" 218 }, 219 "message": { 220 "type": "string" 221 } 222 } 223 }, 224 "Pet": { 225 "type": "object", 226 "properties": { 227 "id": { 228 "type": "integer" 229 }, 230 "type": { 231 "type": "string" 232 }, 233 "price": { 234 "type": "number" 235 } 236 } 237 }, 238 "NewPet": { 239 "type": "object", 240 "properties": { 241 "type": { 242 "$ref": "#/definitions/PetType" 243 }, 244 "price": { 245 "type": "number" 246 } 247 } 248 }, 249 "PetType": { 250 "type": "string", 251 "enum": [ 252 "dog", 253 "cat", 254 "fish", 255 "bird", 256 "gecko" 257 ] 258 } 259 } 260 }