获取接口菜单列表
优质
小牛编辑
130浏览
2023-12-01
基本信息
Path: /api/interface/list_menu
Method: GET
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 |
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
project_id | 是 | ||
token | 是 |
返回数据
{
"errcode": 0,
"errmsg": "成功!",
"data": [
{
"_id": 1376,
"name": "公共分类",
"project_id": 299,
"desc": "公共分类",
"uid": 11,
"add_time": 1511428816,
"up_time": 1511428816,
"__v": 0,
"list": [
{
"_id": 4396,
"project_id": 299,
"catid": 1376,
"title": "/api/group/list",
"path": "/api/group/list",
"method": "GET",
"req_body_type": "json",
"res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": [\n {\n \"_id\": 11,\n \"group_name\": \"个人空间\",\n \"add_time\": 1507877807,\n \"up_time\": 1507877807,\n \"type\": \"private\",\n \"role\": \"owner\"\n },\n {\n \"_id\": 358,\n \"group_name\": \"测试新组长\",\n \"group_desc\": \"是组长,但不是超级管理员的情况\",\n \"uid\": 11,\n \"add_time\": 1510152313,\n \"up_time\": 1510216549,\n \"type\": \"public\",\n \"role\": \"admin\"\n },\n {\n \"_id\": 295,\n \"group_name\": \"eerurueuff\",\n \"group_desc\": \"sdsuddhdh\",\n \"uid\": 11,\n \"add_time\": 1509678660,\n \"up_time\": 1509678660,\n \"type\": \"public\",\n \"role\": \"admin\"\n },\n {\n \"_id\": 19,\n \"group_name\": \"demo\",\n \"group_desc\": \"demo\",\n \"uid\": 11,\n \"add_time\": 1507877873,\n \"up_time\": 1509679366,\n \"type\": \"public\",\n \"role\": \"admin\"\n },\n {\n \"_id\": 402,\n \"group_name\": \"yy\",\n \"group_desc\": \"\",\n \"uid\": 11,\n \"add_time\": 1511431183,\n \"up_time\": 1511431183,\n \"type\": \"public\",\n \"role\": \"admin\"\n },\n {\n \"_id\": 390,\n \"group_name\": \"ttt\",\n \"group_desc\": \"4\",\n \"uid\": 11,\n \"add_time\": 1511430683,\n \"up_time\": 1511430683,\n \"type\": \"public\",\n \"role\": \"admin\"\n },\n {\n \"_id\": 384,\n \"group_name\": \"yapi 上线测试分组(误删)\",\n \"group_desc\": \"\",\n \"uid\": 11,\n \"add_time\": 1511264706,\n \"up_time\": 1511264706,\n \"type\": \"public\",\n \"role\": \"admin\"\n },\n {\n \"_id\": 373,\n \"group_name\": \"test\",\n \"group_desc\": \"巍峨如如如如\",\n \"uid\": 11,\n \"add_time\": 1510747315,\n \"up_time\": 1510747315,\n \"type\": \"public\",\n \"role\": \"admin\"\n },\n {\n \"_id\": 366,\n \"group_name\": \"测试新组长1\",\n \"group_desc\": \"是组长,但不是超级管理员的情况\",\n \"uid\": 11,\n \"add_time\": 1510152399,\n \"up_time\": 1510152403,\n \"type\": \"public\",\n \"role\": \"admin\"\n },\n {\n \"_id\": 151,\n \"group_name\": \"test_123\",\n \"group_desc\": \"\",\n \"uid\": 11,\n \"add_time\": 1508489714,\n \"up_time\": 1508489714,\n \"type\": \"public\",\n \"role\": \"admin\"\n },\n {\n \"_id\": 40,\n \"group_name\": \"test1\",\n \"group_desc\": \"\",\n \"uid\": 11,\n \"add_time\": 1507882145,\n \"up_time\": 1507882145,\n \"type\": \"public\",\n \"role\": \"admin\"\n }\n ]\n}",
"res_body_type": "json",
"uid": 11,
"add_time": 1511431245,
"up_time": 1511431245,
"__v": 0,
"req_body_form": [],
"req_params": [],
"req_headers": [
{
"name": "Content-Type",
"_id": "5a169c4d13e840ea363bb04a",
"required": "1"
}
],
"req_query": [],
"query_path": {
"path": "/api/group/list",
"params": []
},
"type": "static",
"status": "undone",
"edit_uid": 0
},
{
"_id": 4404,
"project_id": 299,
"catid": 1376,
"title": "/api/project/list",
"path": "/api/project/list",
"method": "GET",
"req_body_type": "json",
"res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": {\n \"list\": []\n }\n}",
"res_body_type": "json",
"uid": 11,
"add_time": 1511431245,
"up_time": 1511431245,
"__v": 0,
"req_body_form": [],
"req_params": [],
"req_headers": [
{
"name": "Content-Type",
"_id": "5a169c4d13e840ea363bb04e",
"required": "1"
}
],
"req_query": [
{
"name": "group_id",
"_id": "5a169c4d13e840ea363bb04d",
"required": "1"
},
{
"name": "page",
"_id": "5a169c4d13e840ea363bb04c",
"required": "1"
},
{
"name": "limit",
"_id": "5a169c4d13e840ea363bb04b",
"required": "1"
}
],
"query_path": {
"path": "/api/project/list",
"params": []
},
"type": "static",
"status": "undone",
"edit_uid": 0
},
{
"_id": 4412,
"project_id": 299,
"catid": 1376,
"title": "/api/group/get",
"path": "/api/group/get",
"method": "GET",
"req_body_type": "json",
"res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": {\n \"_id\": 402,\n \"group_name\": \"yy\",\n \"group_desc\": \"\",\n \"uid\": 11,\n \"add_time\": 1511431183,\n \"up_time\": 1511431183,\n \"type\": \"public\",\n \"role\": \"admin\"\n }\n}",
"res_body_type": "json",
"uid": 11,
"add_time": 1511431245,
"up_time": 1511431245,
"__v": 0,
"req_body_form": [],
"req_params": [],
"req_headers": [
{
"name": "Content-Type",
"_id": "5a169c4d13e840ea363bb050",
"required": "1"
}
],
"req_query": [
{
"name": "id",
"_id": "5a169c4d13e840ea363bb04f",
"required": "1"
}
],
"query_path": {
"path": "/api/group/get",
"params": []
},
"type": "static",
"status": "undone",
"edit_uid": 0
},
{
"_id": 4420,
"project_id": 299,
"catid": 1376,
"title": "/api/log/list",
"path": "/api/log/list",
"method": "GET",
"req_body_type": "json",
"res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": {\n \"list\": [\n {\n \"_id\": 18246,\n \"content\": \"<a href=\\\"/user/profile/11\\\">admin</a> 新增了分组 <a href=\\\"/group/402\\\">yy</a>\",\n \"type\": \"group\",\n \"uid\": 11,\n \"username\": \"admin\",\n \"typeid\": 402,\n \"add_time\": 1511431183,\n \"__v\": 0\n }\n ],\n \"total\": 1\n }\n}",
"res_body_type": "json",
"uid": 11,
"add_time": 1511431245,
"up_time": 1511431245,
"__v": 0,
"req_body_form": [],
"req_params": [],
"req_headers": [
{
"name": "Content-Type",
"_id": "5a169c4d13e840ea363bb055",
"required": "1"
}
],
"req_query": [
{
"name": "typeid",
"_id": "5a169c4d13e840ea363bb054",
"required": "1"
},
{
"name": "type",
"_id": "5a169c4d13e840ea363bb053",
"required": "1"
},
{
"name": "page",
"_id": "5a169c4d13e840ea363bb052",
"required": "1"
},
{
"name": "limit",
"_id": "5a169c4d13e840ea363bb051",
"required": "1"
}
],
"query_path": {
"path": "/api/log/list",
"params": []
},
"type": "static",
"status": "undone",
"edit_uid": 0
},
{
"_id": 4428,
"project_id": 299,
"catid": 1376,
"title": "/api/group/get_member_list",
"path": "/api/group/get_member_list",
"method": "GET",
"req_body_type": "json",
"res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": []\n}",
"res_body_type": "json",
"uid": 11,
"add_time": 1511431245,
"up_time": 1511431245,
"__v": 0,
"req_body_form": [],
"req_params": [],
"req_headers": [
{
"name": "Content-Type",
"_id": "5a169c4d13e840ea363bb057",
"required": "1"
}
],
"req_query": [
{
"name": "id",
"_id": "5a169c4d13e840ea363bb056",
"required": "1"
}
],
"query_path": {
"path": "/api/group/get_member_list",
"params": []
},
"type": "static",
"status": "undone",
"edit_uid": 0
},
{
"_id": 4436,
"project_id": 299,
"catid": 1376,
"title": "/api/group/up",
"path": "/api/group/up",
"method": "POST",
"req_body_type": "form",
"res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": {\n \"ok\": 1,\n \"nModified\": 1,\n \"n\": 1\n }\n}",
"res_body_type": "json",
"uid": 11,
"add_time": 1511431246,
"up_time": 1511751572,
"req_body_other": "{\n \"group_name\": \"yy\",\n \"group_desc\": \"hhh\",\n \"id\": 402\n}",
"__v": 0,
"desc": "<p><br></p>",
"req_body_form": [
{
"_id": "5a1b7f940b6d003897955456",
"type": "text",
"name": "group_name",
"required": "1"
},
{
"_id": "5a1b7f940b6d003897955455",
"desc": "",
"example": "",
"type": "text",
"name": "group_desc",
"required": "1"
},
{
"_id": "5a1b7f940b6d003897955454",
"desc": "",
"example": "",
"type": "text",
"name": "id",
"required": "1"
}
],
"req_params": [],
"req_headers": [
{
"_id": "5a1b7f940b6d003897955453",
"value": "application/x-www-form-urlencoded",
"name": "Content-Type",
"required": "1"
}
],
"req_query": [],
"query_path": {
"path": "/api/group/up",
"params": []
},
"type": "static",
"status": "undone",
"edit_uid": 0
},
{
"_id": 4444,
"project_id": 299,
"catid": 1376,
"title": "/api/group/del",
"path": "/api/group/del",
"method": "POST",
"req_body_type": "form",
"res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": {\n \"ok\": 1,\n \"n\": 1\n }\n}",
"res_body_type": "json",
"uid": 11,
"add_time": 1511431246,
"up_time": 1511751531,
"req_body_other": "{\n \"id\": 402\n}",
"__v": 0,
"desc": "<p><br></p>",
"req_body_form": [
{
"_id": "5a1b7f6b0b6d003897955452",
"type": "text",
"name": "id",
"required": "1"
}
],
"req_params": [],
"req_headers": [
{
"_id": "5a1b7f6b0b6d003897955451",
"value": "application/x-www-form-urlencoded",
"name": "Content-Type",
"required": "1"
}
],
"req_query": [],
"query_path": {
"path": "/api/group/del",
"params": []
},
"type": "static",
"status": "undone",
"edit_uid": 0
},
{
"_id": 4388,
"project_id": 299,
"catid": 1376,
"title": "/api/group/add",
"path": "/api/group/add",
"method": "POST",
"req_body_type": "json",
"res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": {\n \"_id\": 402,\n \"group_name\": \"yy\",\n \"group_desc\": \"\",\n \"uid\": 11,\n \"members\": [],\n \"type\": \"public\"\n }\n}",
"res_body_type": "json",
"uid": 11,
"add_time": 1511431245,
"up_time": 1511493611,
"req_body_other": "{\n \"group_name\": \"yy\",\n \"group_desc\": \"\",\n \"owner_uids\": []\n}",
"__v": 0,
"desc": "<p><br></p>",
"req_body_form": [],
"req_params": [],
"req_headers": [
{
"_id": "5a178feb7fd68d078196352b",
"value": "application/json",
"name": "Content-Type",
"required": "1"
}
],
"req_query": [],
"query_path": {
"path": "/api/group/add",
"params": []
},
"type": "static",
"status": "undone",
"edit_uid": 0
}
]
}
]
}