1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
| { "swagger": "2.0", "info": { "description": "swagger是干啥的", "version": "1.0", "title": "swagger测试" }, "host": "localhost:8080", "basePath": "/", "tags": [ { "name": "有a", "description": "Need Speaker" }, { "name": "有b", "description": "Need Speaker" }, { "name": "有基础", "description": "Need Speaker" } ], "paths": { "/swaggerT": { "get": { "tags": [ "有a", "有b", "有基础" ], "summary": "swaggerTest接口", "operationId": "swaggerTestUsingGET", "produces": [ "*/*" ], "parameters": [ { "name": "filmName", "in": "query", "description": "电影名称", "required": false, "type": "string", "allowEmptyValue": false }, { "name": "score", "in": "query", "description": "分数", "required": false, "type": "integer", "format": "int32", "allowEmptyValue": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "string" } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" }, "1000": { "description": "成功" }, "1001": { "description": "失败" }, "1002": { "description": "缺少参数", "schema": { "$ref": "#/definitions/Drinker" } } }, "deprecated": false } } }, "definitions": { "Drinker": { "type": "object", "title": "Drinker" } } }
|