Browse Source

Transferring blueprint from apiary.io

master
Julio Biason 11 years ago
parent
commit
4de3217af6
  1. 19
      apiary.apib

19
apiary.apib

@ -286,6 +286,18 @@ maintenance ownership to another user, immediatelly.
{ "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]
+ Request (application/json)
@ -304,13 +316,14 @@ maintenance ownership to another user, immediatelly.
{ "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
group.
+ Parameter
+ Parameters
+ id ... The group ID.
+ username ... User username.
### 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
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
### Cast a vote [POST]

Loading…
Cancel
Save