mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
docs: list接口返回示例
This commit is contained in:
parent
461f82c7df
commit
2467556d35
@ -1,36 +1,35 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "success",
|
||||
"data": [
|
||||
{
|
||||
"_id": 7,
|
||||
"name": "project_a1",
|
||||
"desc": "tttttt",
|
||||
"prd_host": "project.a1.cc",
|
||||
"basepath": "/a1",
|
||||
"uid": 0,
|
||||
"group_id": 1,
|
||||
"add_time": 1499331378,
|
||||
"up_time": 1499331378,
|
||||
"__v": 0,
|
||||
"members": [
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": 8,
|
||||
"name": "project_a2",
|
||||
"desc": "tttttt",
|
||||
"prd_host": "project.a2.cc",
|
||||
"basepath": "/a1",
|
||||
"uid": 0,
|
||||
"group_id": 1,
|
||||
"add_time": 1499331387,
|
||||
"up_time": 1499331387,
|
||||
"__v": 0,
|
||||
"members": [
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
"data": {
|
||||
"total": 2,
|
||||
"list": [
|
||||
{
|
||||
"_id": 133,
|
||||
"name": "project_a1",
|
||||
"prd_host": "project.a2.cc",
|
||||
"basepath": "/a1/",
|
||||
"uid": 101,
|
||||
"group_id": 101,
|
||||
"add_time": 1500004234,
|
||||
"up_time": 1500004234,
|
||||
"__v": 0,
|
||||
"env":[],
|
||||
"members":["101"]
|
||||
},
|
||||
{
|
||||
"_id": 163,
|
||||
"name": "project_a2",
|
||||
"prd_host": "project.a2.cc",
|
||||
"basepath": "/a2/",
|
||||
"uid": 101,
|
||||
"group_id": 101,
|
||||
"add_time": 1500006397,
|
||||
"up_time": 1500006397,
|
||||
"__v": 0,
|
||||
"env":[],
|
||||
"members":["101"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
24
exampleCode/api/user/list.json
Normal file
24
exampleCode/api/user/list.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "success",
|
||||
"data":{
|
||||
"total": 2,
|
||||
"list":[
|
||||
{
|
||||
"_id": 101,
|
||||
"email": "admin@admin.com",
|
||||
"role": "admin",
|
||||
"add_time": 1499932673,
|
||||
"up_time": 1499932673
|
||||
},
|
||||
{
|
||||
"_id": 263,
|
||||
"username": "2515418556",
|
||||
"email": "2515418556@qq.com",
|
||||
"role": "member",
|
||||
"add_time": 1500023432,
|
||||
"up_time": 1500024967
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user