mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
docs: 增加修改密码和获取项目成员列表返回示例
This commit is contained in:
parent
e896cc5d69
commit
d222205d20
16
exampleCode/api/project/get_member_list.json
Normal file
16
exampleCode/api/project/get_member_list.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "success",
|
||||
"data": [
|
||||
{
|
||||
"_id": 101,
|
||||
"email": "admin@admin.com",
|
||||
"password": "e00084747ecba89837affe8a048e83c751e44209",
|
||||
"passsalt": "fmf3kytyysc4swwuqc15rk9",
|
||||
"role": "admin",
|
||||
"add_time": 1499932673,
|
||||
"up_time": 1499932673,
|
||||
"__v": 0
|
||||
}
|
||||
]
|
||||
}
|
9
exampleCode/api/user/change_password.json
Normal file
9
exampleCode/api/user/change_password.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "success",
|
||||
"data": {
|
||||
"n": 1,
|
||||
"nModified": 1,
|
||||
"ok": 1
|
||||
}
|
||||
}
|
@ -76,7 +76,7 @@ class projectController extends baseController {
|
||||
|
||||
}
|
||||
/**
|
||||
* 添加项目
|
||||
* 添加项目成员
|
||||
* @interface /project/add_member
|
||||
* @method POST
|
||||
* @category project
|
||||
@ -108,7 +108,7 @@ class projectController extends baseController {
|
||||
|
||||
}
|
||||
/**
|
||||
* 添加项目
|
||||
* 删除项目成员
|
||||
* @interface /project/del_member
|
||||
* @method POST
|
||||
* @category project
|
||||
@ -142,7 +142,7 @@ class projectController extends baseController {
|
||||
|
||||
/**
|
||||
* 获取项目成员列表
|
||||
* @interface /project/get_member_list
|
||||
* @interface /project/get_member_list.json
|
||||
* @method GET
|
||||
* @category project
|
||||
* @foldnumber 10
|
||||
|
@ -56,7 +56,7 @@ createAction('project', 'up', 'post', 'up')
|
||||
createAction('project', 'del', 'post', 'del')
|
||||
createAction('project', 'add_member', 'post', 'addMember')
|
||||
createAction('project', 'del_member', 'post', 'delMember')
|
||||
createAction('project', 'get_member_list', 'get', 'getMemberList')
|
||||
createAction('project', 'get_member_list.json', 'get', 'getMemberList')
|
||||
createAction('project', 'search', 'get', 'search')
|
||||
|
||||
//interface
|
||||
|
@ -201,7 +201,7 @@ var projectController = function (_baseController) {
|
||||
return add;
|
||||
}()
|
||||
/**
|
||||
* 添加项目
|
||||
* 添加项目成员
|
||||
* @interface /project/add_member
|
||||
* @method POST
|
||||
* @category project
|
||||
@ -285,7 +285,7 @@ var projectController = function (_baseController) {
|
||||
return addMember;
|
||||
}()
|
||||
/**
|
||||
* 添加项目
|
||||
* 删除项目成员
|
||||
* @interface /project/del_member
|
||||
* @method POST
|
||||
* @category project
|
||||
@ -371,7 +371,7 @@ var projectController = function (_baseController) {
|
||||
|
||||
/**
|
||||
* 获取项目成员列表
|
||||
* @interface /project/get_member_list
|
||||
* @interface /project/get_member_list.json
|
||||
* @method GET
|
||||
* @category project
|
||||
* @foldnumber 10
|
||||
|
@ -82,7 +82,7 @@ createAction('project', 'up', 'post', 'up');
|
||||
createAction('project', 'del', 'post', 'del');
|
||||
createAction('project', 'add_member', 'post', 'addMember');
|
||||
createAction('project', 'del_member', 'post', 'delMember');
|
||||
createAction('project', 'get_member_list', 'get', 'getMemberList');
|
||||
createAction('project', 'get_member_list.json', 'get', 'getMemberList');
|
||||
createAction('project', 'search', 'get', 'search');
|
||||
|
||||
//interface
|
||||
|
Loading…
Reference in New Issue
Block a user