|
|
@ -286,6 +286,18 @@ maintenance ownership to another user, immediatelly. |
|
|
|
|
|
|
|
|
|
|
|
{ "token": "userToken", "usernames": ["username"] } |
|
|
|
{ "token": "userToken", "usernames": ["username"] } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ Response 200 (application/json) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ "status": "OK" } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ Response 400 (application/json) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ "status": "ERROR", "error": "Invalid token" } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ Response 401 (application/json) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ "status": "ERROR", "error": "User is not admin" } |
|
|
|
|
|
|
|
|
|
|
|
### Remove group [DELETE] |
|
|
|
### Remove group [DELETE] |
|
|
|
|
|
|
|
|
|
|
|
+ Request (application/json) |
|
|
|
+ Request (application/json) |
|
|
@ -304,13 +316,14 @@ maintenance ownership to another user, immediatelly. |
|
|
|
|
|
|
|
|
|
|
|
{ "status": "ERROR", "error": "User is not admin" } |
|
|
|
{ "status": "ERROR", "error": "User is not admin" } |
|
|
|
|
|
|
|
|
|
|
|
## Users in the group [/group/{id}/username/] |
|
|
|
## Users in the group [/group/{id}/users/{username}/] |
|
|
|
|
|
|
|
|
|
|
|
Manage users in the group. The user (token owner) must be the maintainer of the |
|
|
|
Manage users in the group. The user (token owner) must be the maintainer of the |
|
|
|
group. |
|
|
|
group. |
|
|
|
|
|
|
|
|
|
|
|
+ Parameter |
|
|
|
+ Parameters |
|
|
|
+ id ... The group ID. |
|
|
|
+ id ... The group ID. |
|
|
|
|
|
|
|
+ username ... User username. |
|
|
|
|
|
|
|
|
|
|
|
### Remove user [DELETE] |
|
|
|
### Remove user [DELETE] |
|
|
|
|
|
|
|
|
|
|
@ -344,7 +357,7 @@ Make a vote for the day (controlled by the server). The user must selected in |
|
|
|
which group they are voting, which will block voting in any other groups, unless |
|
|
|
which group they are voting, which will block voting in any other groups, unless |
|
|
|
the vote is removed; voting in the same group again will only update the vote. |
|
|
|
the vote is removed; voting in the same group again will only update the vote. |
|
|
|
|
|
|
|
|
|
|
|
+ Parameter |
|
|
|
+ Parameters |
|
|
|
+ groupId ... The group in which the user wants to vote |
|
|
|
+ groupId ... The group in which the user wants to vote |
|
|
|
|
|
|
|
|
|
|
|
### Cast a vote [POST] |
|
|
|
### Cast a vote [POST] |
|
|
|