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