swagger.yaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. info:
  2. contact:
  3. email: develoven@163.com
  4. name: Develoven
  5. url: https://www.cnblogs.com/wormworm/
  6. description: AI测试
  7. title: AIT-go AI测试
  8. version: "1.0"
  9. paths:
  10. /v1/record/:recordId/find:
  11. get:
  12. consumes:
  13. - application/json
  14. description: 记录详情查询
  15. parameters:
  16. - description: 测试记录Id
  17. in: path
  18. name: r
  19. required: true
  20. type: string
  21. produces:
  22. - application/json
  23. responses:
  24. "200":
  25. description: ok
  26. schema:
  27. type: string
  28. summary: 记录详情查询
  29. tags:
  30. - 测试记录
  31. /v1/record/create:
  32. post:
  33. consumes:
  34. - application/json
  35. description: 新增测试
  36. parameters:
  37. - description: 文件
  38. in: formData
  39. name: file
  40. required: true
  41. type: file
  42. - description: 用户名
  43. in: formData
  44. name: userName
  45. required: true
  46. type: string
  47. - description: 文件类型
  48. in: formData
  49. name: fileType
  50. required: true
  51. type: string
  52. - description: 方向
  53. in: formData
  54. name: positiveDir
  55. type: string
  56. - description: 方向
  57. in: formData
  58. name: negativaDir
  59. type: string
  60. - description: car_classification :车辆识别 ; car_direction:方向; class_direc =car_classification+car_direction;
  61. in: formData
  62. name: taskType
  63. required: true
  64. type: string
  65. produces:
  66. - application/json
  67. responses:
  68. "200":
  69. description: ok
  70. schema:
  71. type: string
  72. security:
  73. - ApiKeyAuth: []
  74. summary: 新增测试
  75. tags:
  76. - 测试记录
  77. /v1/record/find:
  78. post:
  79. consumes:
  80. - application/json
  81. description: 记录列表查询
  82. parameters:
  83. - description: role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数
  84. in: body
  85. name: r
  86. required: true
  87. schema:
  88. type: string
  89. produces:
  90. - application/json
  91. responses:
  92. "200":
  93. description: ok
  94. schema:
  95. type: string
  96. summary: 记录列表查询
  97. tags:
  98. - 测试记录
  99. /v1/user/change/password:
  100. post:
  101. consumes:
  102. - application/json
  103. description: 用户修改密码
  104. parameters:
  105. - description: userName:用户名 password:密码 newPassword:新密码
  106. in: body
  107. name: user
  108. required: true
  109. schema:
  110. type: string
  111. produces:
  112. - application/json
  113. responses:
  114. "200":
  115. description: ok
  116. schema:
  117. type: string
  118. summary: 用户修改密码
  119. tags:
  120. - 用户管理
  121. /v1/user/find:
  122. post:
  123. consumes:
  124. - application/json
  125. description: 用户列表查询
  126. parameters:
  127. - description: role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数
  128. in: body
  129. name: user
  130. required: true
  131. schema:
  132. type: string
  133. produces:
  134. - application/json
  135. responses:
  136. "200":
  137. description: ok
  138. schema:
  139. type: string
  140. summary: 用户列表查询
  141. tags:
  142. - 用户管理
  143. /v1/user/login:
  144. post:
  145. consumes:
  146. - application/json
  147. description: 用户登录
  148. parameters:
  149. - description: username:编号;password:密码;role:角色;
  150. in: body
  151. name: user
  152. required: true
  153. schema:
  154. type: string
  155. produces:
  156. - application/json
  157. responses:
  158. "200":
  159. description: ok
  160. schema:
  161. type: string
  162. summary: 用户登录
  163. tags:
  164. - 用户管理
  165. /v1/user/register:
  166. post:
  167. consumes:
  168. - application/json
  169. description: 用户注册
  170. parameters:
  171. - description: userName:用户名;password:密码;role:角色
  172. in: body
  173. name: user
  174. required: true
  175. schema:
  176. type: string
  177. produces:
  178. - application/json
  179. responses:
  180. "200":
  181. description: ok
  182. schema:
  183. type: string
  184. summary: 用户注册
  185. tags:
  186. - 用户管理
  187. /v1/user/reset:
  188. post:
  189. consumes:
  190. - application/json
  191. description: 管理员重置普通用户密码
  192. parameters:
  193. - description: username:管理员编号;usernameInit:被重置用户编号
  194. in: body
  195. name: user
  196. required: true
  197. schema:
  198. type: string
  199. produces:
  200. - application/json
  201. responses:
  202. "200":
  203. description: ok
  204. schema:
  205. type: string
  206. summary: 管理员重置普通用户密码
  207. tags:
  208. - 用户管理
  209. swagger: "2.0"