github.com/chrusty/openapi2proto@v0.0.0-20171127225041-f5804f48ccdb/fixtures/includes_query.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "Bad API", 5 "description": "Bad API using query parameters", 6 "version": "1.0.0" 7 }, 8 "host": "api.badness.com", 9 "schemes": [ 10 "https" 11 ], 12 "basePath": "/v1", 13 "produces": [ 14 "application/json" 15 ], 16 "paths": { 17 "/bad/path/with/query?badness={badness}": { 18 "get": { 19 "summary": "Bad Call", 20 "description": "Call which includes a query in its path.", 21 "parameters": [ 22 { 23 "name": "badness", 24 "in": "query", 25 "description": "Bad parameter.", 26 "required": true, 27 "type": "string" 28 } 29 ], 30 "responses": { 31 "200": { 32 "description": "An array of strings", 33 "schema": { 34 "type": "array", 35 "items": { 36 "$ref": "#/definitions/Item" 37 } 38 } 39 } 40 } 41 } 42 } 43 }, 44 "definitions": { 45 "Item": { 46 "type": "string" 47 } 48 } 49 }