swagger.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "AI测试",
  5. "title": "AIT-go AI测试",
  6. "contact": {
  7. "name": "Develoven",
  8. "url": "https://www.cnblogs.com/wormworm/",
  9. "email": "develoven@163.com"
  10. },
  11. "version": "1.0"
  12. },
  13. "paths": {
  14. "/v1/record/:recordId/find": {
  15. "get": {
  16. "description": "记录详情查询",
  17. "consumes": [
  18. "application/json"
  19. ],
  20. "produces": [
  21. "application/json"
  22. ],
  23. "tags": [
  24. "测试记录"
  25. ],
  26. "summary": "记录详情查询",
  27. "parameters": [
  28. {
  29. "type": "string",
  30. "description": "测试记录Id",
  31. "name": "r",
  32. "in": "path",
  33. "required": true
  34. }
  35. ],
  36. "responses": {
  37. "200": {
  38. "description": "ok",
  39. "schema": {
  40. "type": "string"
  41. }
  42. }
  43. }
  44. }
  45. },
  46. "/v1/record/create": {
  47. "post": {
  48. "security": [
  49. {
  50. "ApiKeyAuth": []
  51. }
  52. ],
  53. "description": "新增测试",
  54. "consumes": [
  55. "application/json"
  56. ],
  57. "produces": [
  58. "application/json"
  59. ],
  60. "tags": [
  61. "测试记录"
  62. ],
  63. "summary": "新增测试",
  64. "parameters": [
  65. {
  66. "type": "file",
  67. "description": "文件",
  68. "name": "file",
  69. "in": "formData",
  70. "required": true
  71. },
  72. {
  73. "type": "string",
  74. "description": "用户名",
  75. "name": "userName",
  76. "in": "formData",
  77. "required": true
  78. },
  79. {
  80. "type": "string",
  81. "description": "文件类型",
  82. "name": "fileType",
  83. "in": "formData",
  84. "required": true
  85. },
  86. {
  87. "type": "string",
  88. "description": "方向",
  89. "name": "positiveDir",
  90. "in": "formData"
  91. },
  92. {
  93. "type": "string",
  94. "description": "方向",
  95. "name": "negativaDir",
  96. "in": "formData"
  97. },
  98. {
  99. "type": "string",
  100. "description": "car_classification :车辆识别 ; car_direction:方向; class_direc =car_classification+car_direction;",
  101. "name": "taskType",
  102. "in": "formData",
  103. "required": true
  104. }
  105. ],
  106. "responses": {
  107. "200": {
  108. "description": "ok",
  109. "schema": {
  110. "type": "string"
  111. }
  112. }
  113. }
  114. }
  115. },
  116. "/v1/record/find": {
  117. "post": {
  118. "description": "记录列表查询",
  119. "consumes": [
  120. "application/json"
  121. ],
  122. "produces": [
  123. "application/json"
  124. ],
  125. "tags": [
  126. "测试记录"
  127. ],
  128. "summary": "记录列表查询",
  129. "parameters": [
  130. {
  131. "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数",
  132. "name": "r",
  133. "in": "body",
  134. "required": true,
  135. "schema": {
  136. "type": "string"
  137. }
  138. }
  139. ],
  140. "responses": {
  141. "200": {
  142. "description": "ok",
  143. "schema": {
  144. "type": "string"
  145. }
  146. }
  147. }
  148. }
  149. },
  150. "/v1/user/change/password": {
  151. "post": {
  152. "description": "用户修改密码",
  153. "consumes": [
  154. "application/json"
  155. ],
  156. "produces": [
  157. "application/json"
  158. ],
  159. "tags": [
  160. "用户管理"
  161. ],
  162. "summary": "用户修改密码",
  163. "parameters": [
  164. {
  165. "description": "userName:用户名 password:密码 newPassword:新密码",
  166. "name": "user",
  167. "in": "body",
  168. "required": true,
  169. "schema": {
  170. "type": "string"
  171. }
  172. }
  173. ],
  174. "responses": {
  175. "200": {
  176. "description": "ok",
  177. "schema": {
  178. "type": "string"
  179. }
  180. }
  181. }
  182. }
  183. },
  184. "/v1/user/find": {
  185. "post": {
  186. "description": "用户列表查询",
  187. "consumes": [
  188. "application/json"
  189. ],
  190. "produces": [
  191. "application/json"
  192. ],
  193. "tags": [
  194. "用户管理"
  195. ],
  196. "summary": "用户列表查询",
  197. "parameters": [
  198. {
  199. "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数",
  200. "name": "user",
  201. "in": "body",
  202. "required": true,
  203. "schema": {
  204. "type": "string"
  205. }
  206. }
  207. ],
  208. "responses": {
  209. "200": {
  210. "description": "ok",
  211. "schema": {
  212. "type": "string"
  213. }
  214. }
  215. }
  216. }
  217. },
  218. "/v1/user/login": {
  219. "post": {
  220. "description": "用户登录",
  221. "consumes": [
  222. "application/json"
  223. ],
  224. "produces": [
  225. "application/json"
  226. ],
  227. "tags": [
  228. "用户管理"
  229. ],
  230. "summary": "用户登录",
  231. "parameters": [
  232. {
  233. "description": "username:编号;password:密码;role:角色;",
  234. "name": "user",
  235. "in": "body",
  236. "required": true,
  237. "schema": {
  238. "type": "string"
  239. }
  240. }
  241. ],
  242. "responses": {
  243. "200": {
  244. "description": "ok",
  245. "schema": {
  246. "type": "string"
  247. }
  248. }
  249. }
  250. }
  251. },
  252. "/v1/user/register": {
  253. "post": {
  254. "description": "用户注册",
  255. "consumes": [
  256. "application/json"
  257. ],
  258. "produces": [
  259. "application/json"
  260. ],
  261. "tags": [
  262. "用户管理"
  263. ],
  264. "summary": "用户注册",
  265. "parameters": [
  266. {
  267. "description": "userName:用户名;password:密码;role:角色",
  268. "name": "user",
  269. "in": "body",
  270. "required": true,
  271. "schema": {
  272. "type": "string"
  273. }
  274. }
  275. ],
  276. "responses": {
  277. "200": {
  278. "description": "ok",
  279. "schema": {
  280. "type": "string"
  281. }
  282. }
  283. }
  284. }
  285. },
  286. "/v1/user/reset": {
  287. "post": {
  288. "description": "管理员重置普通用户密码",
  289. "consumes": [
  290. "application/json"
  291. ],
  292. "produces": [
  293. "application/json"
  294. ],
  295. "tags": [
  296. "用户管理"
  297. ],
  298. "summary": "管理员重置普通用户密码",
  299. "parameters": [
  300. {
  301. "description": "username:管理员编号;usernameInit:被重置用户编号",
  302. "name": "user",
  303. "in": "body",
  304. "required": true,
  305. "schema": {
  306. "type": "string"
  307. }
  308. }
  309. ],
  310. "responses": {
  311. "200": {
  312. "description": "ok",
  313. "schema": {
  314. "type": "string"
  315. }
  316. }
  317. }
  318. }
  319. }
  320. }
  321. }