Added method to add a user to a team

This commit is contained in:
konrad 2018-07-26 09:53:32 +02:00 committed by kolaente
parent 0b2f66965a
commit bc580e0115
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
8 changed files with 66 additions and 8 deletions

View file

@ -8,3 +8,5 @@ Content-Type: application/json
}
> {% client.global.set("auth_token", response.body.token); %}
###

29
REST-Tests/teams.http Normal file
View file

@ -0,0 +1,29 @@
# Get all teams
GET http://localhost:8080/api/v1/teams
Authorization: Bearer {{auth_token}}
###
# Get one team
GET http://localhost:8080/api/v1/teams/28
Authorization: Bearer {{auth_token}}
###
# Add a new member to that team
PUT http://localhost:8080/api/v1/teams/28/members
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{
"user_id": 2
}
###
# Delete a member from a team
DELETE http://localhost:8080/api/v1/teams/28/members/2
Authorization: Bearer {{auth_token}}
###