swagger.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. definitions:
  2. base.HTTPError:
  3. properties:
  4. code:
  5. example: 500
  6. format: int
  7. type: integer
  8. message:
  9. example: status bad request
  10. type: string
  11. type: object
  12. v1.QueryBody:
  13. properties:
  14. api:
  15. type: string
  16. param:
  17. type: string
  18. type: object
  19. v1.QueryResponse:
  20. properties:
  21. data:
  22. type: string
  23. type: object
  24. info:
  25. contact: {}
  26. description: This is a gateway server. On the page, you can go to do testing for
  27. every API.
  28. title: Project adm-data-gateway's APIs
  29. version: "1.1"
  30. paths:
  31. /api/v1.0/query:
  32. post:
  33. consumes:
  34. - application/json
  35. description: API查询
  36. parameters:
  37. - description: appkey
  38. in: header
  39. name: appkey
  40. required: true
  41. type: string
  42. - description: timestamp
  43. in: header
  44. name: ts
  45. required: true
  46. type: string
  47. - description: 签名
  48. in: header
  49. name: sign
  50. required: true
  51. type: string
  52. - description: body
  53. in: body
  54. name: body
  55. required: true
  56. schema:
  57. $ref: '#/definitions/v1.QueryBody'
  58. produces:
  59. - application/json
  60. responses:
  61. "200":
  62. description: 响应信息
  63. schema:
  64. $ref: '#/definitions/v1.QueryResponse'
  65. "500":
  66. description: Internal Server Error
  67. schema:
  68. $ref: '#/definitions/base.HTTPError'
  69. summary: API查询
  70. tags:
  71. - query
  72. - v1.0
  73. swagger: "2.0"