{ "swagger": "2.0", "info": { "description": "This is a gateway server. On the page, you can go to do testing for every API.", "title": "Project adm-data-gateway's APIs", "contact": {}, "version": "1.1" }, "paths": { "/api/v1.0/query": { "post": { "description": "API查询", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "query", "v1.0" ], "summary": "API查询", "parameters": [ { "type": "string", "description": "appkey", "name": "appkey", "in": "header", "required": true }, { "type": "string", "description": "timestamp", "name": "ts", "in": "header", "required": true }, { "type": "string", "description": "签名", "name": "sign", "in": "header", "required": true }, { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1.QueryBody" } } ], "responses": { "200": { "description": "响应信息", "schema": { "$ref": "#/definitions/v1.QueryResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/base.HTTPError" } } } } } }, "definitions": { "base.HTTPError": { "type": "object", "properties": { "code": { "type": "integer", "format": "int", "example": 500 }, "message": { "type": "string", "example": "status bad request" } } }, "v1.QueryBody": { "type": "object", "properties": { "api": { "type": "string" }, "param": { "type": "string" } } }, "v1.QueryResponse": { "type": "object", "properties": { "data": { "type": "string" } } } } }