-
Notifications
You must be signed in to change notification settings - Fork 2
Group
Siyuan Zhang | 张豆 edited this page Oct 11, 2019
·
1 revision
GET /api/v1/groups
[
{
"id": 123,
"name": "更改",
"createDate": "2018-10-04T16:31:40",
"jwtUserList": [
{
"username": "shu-test",
"firstname": null,
"lastname": null,
"email": "[email protected]",
"school": "上海大学",
"signature": null,
"acCount": 0,
"submitCount": 0,
"acRate": 0,
"enabled": true,
"authorities": [
{
"authority": "ROLE_USER"
}
]
},
{
"username": "Sylvia",
"firstname": null,
"lastname": null,
"email": "[email protected]",
"school": "上海大学",
"signature": null,
"acCount": 0,
"submitCount": 0,
"acRate": 0,
"enabled": true,
"authorities": [
{
"authority": "ROLE_ADMIN"
}
]
}
]
},
{
"id": 125,
"name": "test three!!!",
"createDate": "2018-09-18T21:30:00",
"jwtUserList": [
{
"username": "test",
"firstname": null,
"lastname": null,
"email": "[email protected]",
"school": "上海大学",
"signature": null,
"acCount": 0,
"submitCount": 0,
"acRate": 0,
"enabled": true,
"authorities": [
{
"authority": "ROLE_ADMIN"
}
]
}
]
}
]
GET /api/v1/groups/:id
{
"id": 123,
"name": "更改",
"createDate": "2018-10-04T16:31:40",
"jwtUserList": [
{
"username": "shu-test",
"firstname": null,
"lastname": null,
"email": "[email protected]",
"school": "上海大学",
"signature": null,
"acCount": 0,
"submitCount": 0,
"acRate": 0,
"enabled": true,
"authorities": [
{
"authority": "ROLE_USER"
}
]
},
{
"username": "test",
"firstname": null,
"lastname": null,
"email": "[email protected]",
"school": "上海大学",
"signature": null,
"acCount": 0,
"submitCount": 0,
"acRate": 0,
"enabled": true,
"authorities": [
{
"authority": "ROLE_ADMIN"
}
]
},
{
"username": "Sylvia",
"firstname": null,
"lastname": null,
"email": "[email protected]",
"school": "上海大学",
"signature": null,
"acCount": 0,
"submitCount": 0,
"acRate": 0,
"enabled": true,
"authorities": [
{
"authority": "ROLE_ADMIN"
}
]
}
]
}
ADMIN Required
POST /api/v1/groups
Parameter | Default | Description |
---|---|---|
name |
null |
groupName |
{
"id": 131,
"name": "2018年冬季赛",
"createDate": "2018-10-05T13:55:19.593",
"jwtUserList": null
}
ADMIN Required
PUT /api/v1/groups/:id
Parameter | Default | Description |
---|---|---|
name |
null |
{
"id": 131,
"name": "2018年冬季赛热身赛",
"createDate": "2018-10-05T13:55:20",
"jwtUserList": []
}
ADMIN Required
DELETE /api/v1/groups/:id
{
"id": 131,
"name": "2018年冬季赛热身赛",
"createDate": "2018-10-05T13:55:20",
"jwtUserList": null
}
ADMIN Required
POST /api/v1/groups/:id/members
Parameter | Default | Description |
---|---|---|
userIdList |
null |
example:[20,91,111] |
{
"id": 132,
"name": "2019年春季赛",
"createDate": "2018-10-05T14:15:53",
"jwtUserList": [
{
"username": "kastnerorz",
"firstname": null,
"lastname": null,
"email": "[email protected]",
"school": "上海大学",
"signature": null,
"acCount": 0,
"submitCount": 0,
"acRate": 0,
"enabled": true,
"authorities": [
{
"authority": "ROLE_ADMIN"
}
]
},
{
"username": "iris",
"firstname": null,
"lastname": null,
"email": "[email protected]",
"school": "上海大学",
"signature": null,
"acCount": 0,
"submitCount": 0,
"acRate": 0,
"enabled": true,
"authorities": [
{
"authority": "ROLE_USER"
}
]
}
]
}
ADMIN Required
DELETE /api/v1/groups/:id/members
Parameter | Default | Description |
---|---|---|
userIdList |
null |
example:[20,91,111] |
{
"id": 132,
"name": "2019年春季赛",
"createDate": "2018-10-05T14:15:53",
"jwtUserList": [
{
"username": "iris",
"firstname": null,
"lastname": null,
"email": "[email protected]",
"school": "上海大学",
"signature": null,
"acCount": 0,
"submitCount": 0,
"acRate": 0,
"enabled": true,
"authorities": [
{
"authority": "ROLE_USER"
}
]
}
]
}