swagger.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "contact": {},
  5. "license": {}
  6. },
  7. "paths": {
  8. "/dust_excessive_img": {
  9. "post": {
  10. "description": "扬尘超标数据图片",
  11. "consumes": [
  12. "application/json"
  13. ],
  14. "produces": [
  15. "application/json"
  16. ],
  17. "tags": [
  18. "扬尘超标数据图片"
  19. ],
  20. "summary": "扬尘超标数据图片",
  21. "parameters": [
  22. {
  23. "description": "sn",
  24. "name": "body",
  25. "in": "body",
  26. "required": true,
  27. "schema": {
  28. "$ref": "#/definitions/v1.ExcessiveImgBody"
  29. }
  30. }
  31. ],
  32. "responses": {
  33. "200": {
  34. "description": "OK",
  35. "schema": {
  36. "$ref": "#/definitions/v1.ExcessiveImgResponse"
  37. }
  38. },
  39. "500": {
  40. "description": "Internal Server Error",
  41. "schema": {
  42. "$ref": "#/definitions/base.HTTPError"
  43. }
  44. }
  45. }
  46. }
  47. }
  48. },
  49. "definitions": {
  50. "base.HTTPError": {
  51. "type": "object",
  52. "properties": {
  53. "code": {
  54. "type": "integer",
  55. "format": "int",
  56. "example": 500
  57. },
  58. "message": {
  59. "type": "string",
  60. "example": "status bad request"
  61. }
  62. }
  63. },
  64. "v1.ExcessiveImgBody": {
  65. "type": "object",
  66. "required": [
  67. "mn"
  68. ],
  69. "properties": {
  70. "ecode": {
  71. "description": "超标数据编号",
  72. "type": "string"
  73. },
  74. "imageBase64": {
  75. "description": "图片",
  76. "type": "string"
  77. },
  78. "mn": {
  79. "type": "string"
  80. }
  81. }
  82. },
  83. "v1.ExcessiveImgResponse": {
  84. "type": "object",
  85. "properties": {
  86. "code": {
  87. "description": "返回码",
  88. "type": "integer",
  89. "format": "int",
  90. "default": 0
  91. },
  92. "message": {
  93. "description": "消息",
  94. "type": "string",
  95. "default": "success"
  96. }
  97. }
  98. }
  99. }
  100. }