{ "swagger": "2.0", "info": { "description": "AI测试", "title": "AIT-go AI测试", "contact": { "name": "Develoven", "url": "https://www.cnblogs.com/wormworm/", "email": "develoven@163.com" }, "version": "1.0" }, "paths": { "/v1/record/:recordId/find": { "get": { "description": "记录详情查询", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "测试记录" ], "summary": "记录详情查询", "parameters": [ { "type": "string", "description": "测试记录Id", "name": "r", "in": "path", "required": true } ], "responses": { "200": { "description": "ok", "schema": { "type": "string" } } } } }, "/v1/record/create": { "post": { "security": [ { "ApiKeyAuth": [] } ], "description": "新增测试", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "测试记录" ], "summary": "新增测试", "parameters": [ { "type": "file", "description": "文件", "name": "file", "in": "formData", "required": true }, { "type": "string", "description": "用户名", "name": "userName", "in": "formData", "required": true }, { "type": "string", "description": "文件类型", "name": "fileType", "in": "formData", "required": true }, { "type": "string", "description": "方向", "name": "positiveDir", "in": "formData" }, { "type": "string", "description": "方向", "name": "negativaDir", "in": "formData" }, { "type": "string", "description": "car_classification :车辆识别 ; car_direction:方向; class_direc =car_classification+car_direction;", "name": "taskType", "in": "formData", "required": true } ], "responses": { "200": { "description": "ok", "schema": { "type": "string" } } } } }, "/v1/record/find": { "post": { "description": "记录列表查询", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "测试记录" ], "summary": "记录列表查询", "parameters": [ { "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数", "name": "r", "in": "body", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "ok", "schema": { "type": "string" } } } } }, "/v1/user/change/password": { "post": { "description": "用户修改密码", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "用户修改密码", "parameters": [ { "description": "userName:用户名 password:密码 newPassword:新密码", "name": "user", "in": "body", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "ok", "schema": { "type": "string" } } } } }, "/v1/user/find": { "post": { "description": "用户列表查询", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "用户列表查询", "parameters": [ { "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数", "name": "user", "in": "body", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "ok", "schema": { "type": "string" } } } } }, "/v1/user/login": { "post": { "description": "用户登录", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "用户登录", "parameters": [ { "description": "username:编号;password:密码;role:角色;", "name": "user", "in": "body", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "ok", "schema": { "type": "string" } } } } }, "/v1/user/register": { "post": { "description": "用户注册", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "用户注册", "parameters": [ { "description": "userName:用户名;password:密码;role:角色", "name": "user", "in": "body", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "ok", "schema": { "type": "string" } } } } }, "/v1/user/reset": { "post": { "description": "管理员重置普通用户密码", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "用户管理" ], "summary": "管理员重置普通用户密码", "parameters": [ { "description": "username:管理员编号;usernameInit:被重置用户编号", "name": "user", "in": "body", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "ok", "schema": { "type": "string" } } } } } } }