Get all groups
Do not supply a request parameters with this method.
Request headers
Key |
Value |
Remark |
Authorization |
token |
Required |
Do not supply a request body with this method.
[
{
"_id": "595e72294ad3131b84083d37",
"create_time": "2017-07-06T17:23:53.000Z",
"name": "深度学习与计算机视觉",
"type": "study",
"description": "李飞飞亲授计算机视觉与深度网络。",
"__v": 5,
"events": ["5a510c2b67563b041ab214eb", "5a510c3167563b041ab214ec"],
"admins": [],
"members": [
"5a2d4af36e20934f2e7ab022",
"5a2d4b796e20934f2e7ab027",
"5961a66bf79ed50d198ae08e"
]
}
]
Create a new group.
Request headers
Key |
Value |
Remark |
Authorization |
token |
Required |
Parameter |
Type |
Description |
name |
|
|
type |
|
|
description |
|
|
{
"name": "STP",
"type": "commonweal",
"description": "test"
}
Get group info by id.
GET /group/getGroupInfoById?id={{id}}
Request headers
Key |
Value |
Remark |
Authorization |
token |
Required |
Parameter |
Type |
Description |
id |
|
|
{
"_id": "595e72294ad3131b84083d37",
"create_time": "2017-07-06T17:23:53.000Z",
"name": "深度学习与计算机视觉",
"type": "study",
"description": "李飞飞亲授计算机视觉与深度网络。",
"__v": 5,
"events": [
{
"_id": "5a510c3167563b041ab214ec",
"name": "测试课程2",
"begin_time": null,
"enroll_begin_time": null,
"location": "东川路",
"__v": 0,
"members": [],
"tags": []
},
{
"_id": "5a510c2b67563b041ab214eb",
"name": "测试课程",
"begin_time": null,
"enroll_begin_time": null,
"location": "东川路",
"__v": 0,
"members": [],
"tags": []
}
],
"admins": [],
"members": [
{
"_id": "5961a66bf79ed50d198ae08e",
"username": "wfnuser",
"name": "黄清昊",
"__v": 0
},
{
"_id": "5a2d4af36e20934f2e7ab022",
"username": "qinghao",
"name": "qinghao",
"__v": 1
},
{
"_id": "5a2d4b796e20934f2e7ab027",
"username": "Mark",
"name": "李志辉",
"__v": 1
}
]
}
Join a group.
Request headers
Key |
Value |
Remark |
Authorization |
token |
Required |
Parameter |
Type |
Description |
id |
|
|
{
"id": "595e72294ad3131b84083d37"
}