新增接口

基本信息

Path: /api/interface/add

Method: POST

接口描述:

请求参数

Headers

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

Body

  1. {
  2. "token": "xxx",
  3. "req_query": [],
  4. "req_headers": [
  5. {
  6. "name": "Content-Type"
  7. }
  8. ],
  9. "req_body_form": [],
  10. "title": "/api/group/list",
  11. "catid": "1376",
  12. "path": "/api/group/list",
  13. "status": "undone",
  14. "res_body_type": "json",
  15. "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}",
  16. "switch_notice": false,
  17. "message": "",
  18. "desc": "<p><br></p>",
  19. "method": "GET",
  20. "req_params": []
  21. }

返回数据

  1. {
  2. "errcode": 0,
  3. "errmsg": "成功!",
  4. "data": {
  5. "ok": 1,
  6. "nModified": 1,
  7. "n": 1
  8. }
  9. }