获取接口菜单列表

基本信息

Path: /api/interface/list_menu

Method: GET

接口描述:

请求参数

Headers

参数名称参数值是否必须示例备注
Content-Typeapplication/json

Query

参数名称是否必须示例备注
project_id
token

返回数据

  1. {
  2. "errcode": 0,
  3. "errmsg": "成功!",
  4. "data": [
  5. {
  6. "_id": 1376,
  7. "name": "公共分类",
  8. "project_id": 299,
  9. "desc": "公共分类",
  10. "uid": 11,
  11. "add_time": 1511428816,
  12. "up_time": 1511428816,
  13. "__v": 0,
  14. "list": [
  15. {
  16. "_id": 4396,
  17. "project_id": 299,
  18. "catid": 1376,
  19. "title": "/api/group/list",
  20. "path": "/api/group/list",
  21. "method": "GET",
  22. "req_body_type": "json",
  23. "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}",
  24. "res_body_type": "json",
  25. "uid": 11,
  26. "add_time": 1511431245,
  27. "up_time": 1511431245,
  28. "__v": 0,
  29. "req_body_form": [],
  30. "req_params": [],
  31. "req_headers": [
  32. {
  33. "name": "Content-Type",
  34. "_id": "5a169c4d13e840ea363bb04a",
  35. "required": "1"
  36. }
  37. ],
  38. "req_query": [],
  39. "query_path": {
  40. "path": "/api/group/list",
  41. "params": []
  42. },
  43. "type": "static",
  44. "status": "undone",
  45. "edit_uid": 0
  46. },
  47. {
  48. "_id": 4404,
  49. "project_id": 299,
  50. "catid": 1376,
  51. "title": "/api/project/list",
  52. "path": "/api/project/list",
  53. "method": "GET",
  54. "req_body_type": "json",
  55. "res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": {\n \"list\": []\n }\n}",
  56. "res_body_type": "json",
  57. "uid": 11,
  58. "add_time": 1511431245,
  59. "up_time": 1511431245,
  60. "__v": 0,
  61. "req_body_form": [],
  62. "req_params": [],
  63. "req_headers": [
  64. {
  65. "name": "Content-Type",
  66. "_id": "5a169c4d13e840ea363bb04e",
  67. "required": "1"
  68. }
  69. ],
  70. "req_query": [
  71. {
  72. "name": "group_id",
  73. "_id": "5a169c4d13e840ea363bb04d",
  74. "required": "1"
  75. },
  76. {
  77. "name": "page",
  78. "_id": "5a169c4d13e840ea363bb04c",
  79. "required": "1"
  80. },
  81. {
  82. "name": "limit",
  83. "_id": "5a169c4d13e840ea363bb04b",
  84. "required": "1"
  85. }
  86. ],
  87. "query_path": {
  88. "path": "/api/project/list",
  89. "params": []
  90. },
  91. "type": "static",
  92. "status": "undone",
  93. "edit_uid": 0
  94. },
  95. {
  96. "_id": 4412,
  97. "project_id": 299,
  98. "catid": 1376,
  99. "title": "/api/group/get",
  100. "path": "/api/group/get",
  101. "method": "GET",
  102. "req_body_type": "json",
  103. "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}",
  104. "res_body_type": "json",
  105. "uid": 11,
  106. "add_time": 1511431245,
  107. "up_time": 1511431245,
  108. "__v": 0,
  109. "req_body_form": [],
  110. "req_params": [],
  111. "req_headers": [
  112. {
  113. "name": "Content-Type",
  114. "_id": "5a169c4d13e840ea363bb050",
  115. "required": "1"
  116. }
  117. ],
  118. "req_query": [
  119. {
  120. "name": "id",
  121. "_id": "5a169c4d13e840ea363bb04f",
  122. "required": "1"
  123. }
  124. ],
  125. "query_path": {
  126. "path": "/api/group/get",
  127. "params": []
  128. },
  129. "type": "static",
  130. "status": "undone",
  131. "edit_uid": 0
  132. },
  133. {
  134. "_id": 4420,
  135. "project_id": 299,
  136. "catid": 1376,
  137. "title": "/api/log/list",
  138. "path": "/api/log/list",
  139. "method": "GET",
  140. "req_body_type": "json",
  141. "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}",
  142. "res_body_type": "json",
  143. "uid": 11,
  144. "add_time": 1511431245,
  145. "up_time": 1511431245,
  146. "__v": 0,
  147. "req_body_form": [],
  148. "req_params": [],
  149. "req_headers": [
  150. {
  151. "name": "Content-Type",
  152. "_id": "5a169c4d13e840ea363bb055",
  153. "required": "1"
  154. }
  155. ],
  156. "req_query": [
  157. {
  158. "name": "typeid",
  159. "_id": "5a169c4d13e840ea363bb054",
  160. "required": "1"
  161. },
  162. {
  163. "name": "type",
  164. "_id": "5a169c4d13e840ea363bb053",
  165. "required": "1"
  166. },
  167. {
  168. "name": "page",
  169. "_id": "5a169c4d13e840ea363bb052",
  170. "required": "1"
  171. },
  172. {
  173. "name": "limit",
  174. "_id": "5a169c4d13e840ea363bb051",
  175. "required": "1"
  176. }
  177. ],
  178. "query_path": {
  179. "path": "/api/log/list",
  180. "params": []
  181. },
  182. "type": "static",
  183. "status": "undone",
  184. "edit_uid": 0
  185. },
  186. {
  187. "_id": 4428,
  188. "project_id": 299,
  189. "catid": 1376,
  190. "title": "/api/group/get_member_list",
  191. "path": "/api/group/get_member_list",
  192. "method": "GET",
  193. "req_body_type": "json",
  194. "res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": []\n}",
  195. "res_body_type": "json",
  196. "uid": 11,
  197. "add_time": 1511431245,
  198. "up_time": 1511431245,
  199. "__v": 0,
  200. "req_body_form": [],
  201. "req_params": [],
  202. "req_headers": [
  203. {
  204. "name": "Content-Type",
  205. "_id": "5a169c4d13e840ea363bb057",
  206. "required": "1"
  207. }
  208. ],
  209. "req_query": [
  210. {
  211. "name": "id",
  212. "_id": "5a169c4d13e840ea363bb056",
  213. "required": "1"
  214. }
  215. ],
  216. "query_path": {
  217. "path": "/api/group/get_member_list",
  218. "params": []
  219. },
  220. "type": "static",
  221. "status": "undone",
  222. "edit_uid": 0
  223. },
  224. {
  225. "_id": 4436,
  226. "project_id": 299,
  227. "catid": 1376,
  228. "title": "/api/group/up",
  229. "path": "/api/group/up",
  230. "method": "POST",
  231. "req_body_type": "form",
  232. "res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": {\n \"ok\": 1,\n \"nModified\": 1,\n \"n\": 1\n }\n}",
  233. "res_body_type": "json",
  234. "uid": 11,
  235. "add_time": 1511431246,
  236. "up_time": 1511751572,
  237. "req_body_other": "{\n \"group_name\": \"yy\",\n \"group_desc\": \"hhh\",\n \"id\": 402\n}",
  238. "__v": 0,
  239. "desc": "<p><br></p>",
  240. "req_body_form": [
  241. {
  242. "_id": "5a1b7f940b6d003897955456",
  243. "type": "text",
  244. "name": "group_name",
  245. "required": "1"
  246. },
  247. {
  248. "_id": "5a1b7f940b6d003897955455",
  249. "desc": "",
  250. "example": "",
  251. "type": "text",
  252. "name": "group_desc",
  253. "required": "1"
  254. },
  255. {
  256. "_id": "5a1b7f940b6d003897955454",
  257. "desc": "",
  258. "example": "",
  259. "type": "text",
  260. "name": "id",
  261. "required": "1"
  262. }
  263. ],
  264. "req_params": [],
  265. "req_headers": [
  266. {
  267. "_id": "5a1b7f940b6d003897955453",
  268. "value": "application/x-www-form-urlencoded",
  269. "name": "Content-Type",
  270. "required": "1"
  271. }
  272. ],
  273. "req_query": [],
  274. "query_path": {
  275. "path": "/api/group/up",
  276. "params": []
  277. },
  278. "type": "static",
  279. "status": "undone",
  280. "edit_uid": 0
  281. },
  282. {
  283. "_id": 4444,
  284. "project_id": 299,
  285. "catid": 1376,
  286. "title": "/api/group/del",
  287. "path": "/api/group/del",
  288. "method": "POST",
  289. "req_body_type": "form",
  290. "res_body": "{\n \"errcode\": 0,\n \"errmsg\": \"成功!\",\n \"data\": {\n \"ok\": 1,\n \"n\": 1\n }\n}",
  291. "res_body_type": "json",
  292. "uid": 11,
  293. "add_time": 1511431246,
  294. "up_time": 1511751531,
  295. "req_body_other": "{\n \"id\": 402\n}",
  296. "__v": 0,
  297. "desc": "<p><br></p>",
  298. "req_body_form": [
  299. {
  300. "_id": "5a1b7f6b0b6d003897955452",
  301. "type": "text",
  302. "name": "id",
  303. "required": "1"
  304. }
  305. ],
  306. "req_params": [],
  307. "req_headers": [
  308. {
  309. "_id": "5a1b7f6b0b6d003897955451",
  310. "value": "application/x-www-form-urlencoded",
  311. "name": "Content-Type",
  312. "required": "1"
  313. }
  314. ],
  315. "req_query": [],
  316. "query_path": {
  317. "path": "/api/group/del",
  318. "params": []
  319. },
  320. "type": "static",
  321. "status": "undone",
  322. "edit_uid": 0
  323. },
  324. {
  325. "_id": 4388,
  326. "project_id": 299,
  327. "catid": 1376,
  328. "title": "/api/group/add",
  329. "path": "/api/group/add",
  330. "method": "POST",
  331. "req_body_type": "json",
  332. "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}",
  333. "res_body_type": "json",
  334. "uid": 11,
  335. "add_time": 1511431245,
  336. "up_time": 1511493611,
  337. "req_body_other": "{\n \"group_name\": \"yy\",\n \"group_desc\": \"\",\n \"owner_uids\": []\n}",
  338. "__v": 0,
  339. "desc": "<p><br></p>",
  340. "req_body_form": [],
  341. "req_params": [],
  342. "req_headers": [
  343. {
  344. "_id": "5a178feb7fd68d078196352b",
  345. "value": "application/json",
  346. "name": "Content-Type",
  347. "required": "1"
  348. }
  349. ],
  350. "req_query": [],
  351. "query_path": {
  352. "path": "/api/group/add",
  353. "params": []
  354. },
  355. "type": "static",
  356. "status": "undone",
  357. "edit_uid": 0
  358. }
  359. ]
  360. }
  361. ]
  362. }