返回介绍

新增接口

发布于 04-24 12:50 字数 3754 浏览 1025 评论 0 收藏 0

基本信息

Path: /api/interface/add

Method: POST

接口描述:

请求参数

Headers

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

Body

{
  "token": "xxx",
  "req_query": [],
  "req_headers": [
    {
      "name": "Content-Type"
    }
  ],
  "req_body_form": [],
  "title": "/api/group/list",
  "catid": "1376",
  "path": "/api/group/list",
  "status": "undone",
  "res_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}",
  "switch_notice": false,
  "message": "",
  "desc": "<p><br></p>",
  "method": "GET",
  "req_params": []
}

返回数据

{
  "errcode": 0,
  "errmsg": "成功!",
  "data": {
    "ok": 1,
    "nModified": 1,
    "n": 1
  }
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文