+{"swagger":"2.0","info":{"description":"我是一段描述","version":"1.0.0","title":"测试接口文档示例","contact":{"name":"芋艿","url":"http://www.iocoder.cn","email":"zhijiantianya@gmail.com"}},"host":"127.0.0.1:8080","basePath":"/","tags":[{"name":"用户 API 接口","description":"User Controller"}],"paths":{"/users/add":{"post":{"tags":["用户 API 接口"],"summary":"添加用户","operationId":"addUsingPOST","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"password","in":"query","description":"密码","required":true,"type":"string","x-example":"nicai"},{"name":"username","in":"query","description":"账号","required":true,"type":"string","x-example":"yudaoyuanma"}],"responses":{"200":{"description":"OK","schema":{"type":"integer","format":"int32"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/users/delete":{"post":{"tags":["用户 API 接口"],"summary":"删除指定用户编号的用户","operationId":"deleteUsingPOST","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"id","in":"query","description":"用户编号","required":true,"type":"integer","format":"int32","x-example":1024}],"responses":{"200":{"description":"OK","schema":{"type":"boolean"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/users/get":{"get":{"tags":["用户 API 接口"],"summary":"获得指定用户编号的用户","operationId":"getUsingGET","produces":["*/*"],"parameters":[{"name":"id","in":"query","description":"用户编号","required":true,"type":"integer","format":"int32","x-example":1024}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/用户 VO"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/users/list":{"get":{"tags":["用户 API 接口"],"summary":"查询用户列表","description":"目前仅仅是作为测试,所以返回用户全列表","operationId":"listUsingGET","produces":["*/*"],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/用户 VO"}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/users/update":{"post":{"tags":["用户 API 接口"],"summary":"更新指定用户编号的用户","operationId":"updateUsingPOST","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"id","in":"query","description":"用户编号","required":true,"type":"integer","format":"int32","x-example":1024},{"name":"password","in":"query","description":"密码","required":true,"type":"string","x-example":"nicai"},{"name":"username","in":"query","description":"账号","required":true,"type":"string","x-example":"yudaoyuanma"}],"responses":{"200":{"description":"OK","schema":{"type":"boolean"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}}},"definitions":{"用户 VO":{"type":"object","required":["id","username"],"properties":{"id":{"type":"integer","format":"int32","example":1024,"description":"用户编号"},"username":{"type":"string","example":"yudaoyuanma","description":"账号"}},"title":"用户 VO"}}}
0 commit comments