123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- {
- "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"
- }
- }
- }
- }
- }
|