Logo: Relish

  1. Sign in

Project: Apiv3

Teams

TODO: Document Purpose and Usage

Scenarios
Fetching the root Team collection.
When
I GET to /teams
Then
I should get a 200 OK status code
And
the response is the Team collection
Fetching a Team.
Given
I have 1 Team
When
I GET to /teams/:team_id giving the team_id
Then
I should get a 200 OK status code
And
the response is the Team collection
And
the response contains 1 Team
Fetching multiple Teams.
Given
I have 2 Teams
When
I GET to /teams/:team_id giving the team_id
Then
I should get a 200 OK status code
And
the response is the Team collection
And
the response contains 2 Teams
Fetching an invalid Team.
Given
I have an invalid Team
When
I GET to /teams/:team_id giving the team_id
Then
I should get a 404 NOT FOUND status code
Searching for a Team.
Given
I have 1 Team
When
I GET to /teams/search?id=:team_id giving the team_id
Then
I should get a 200 OK status code
And
the response is the Team collection
And
the response contains 1 Team
Searching for multiple Teams.
Given
I have 2 Teams
When
I GET to /teams/search?id=:team_id giving the team_id
Then
I should get a 200 OK status code
And
the response is the Team collection
And
the response contains 2 Teams
Searching for an invalid Team.
Given
I have an invalid Team
When
I GET to /teams/search?id=:team_id giving the team_id
Then
I should get a 200 OK status code
And
the response is the Team collection
And
the response contains 0 Teams
Searching for a Team via team_id.
Given
I have 1 Team
When
I GET to /teams/search?team_id=:team_id giving the team_id
Then
I should get a 200 OK status code
And
the response is the Team collection
And
the response contains 1 Team
Searching for a Team via the owner's user_id.
Given
I have 1 Team
When
I GET to /teams/search?user_id=:user_id giving the user_id
Then
I should get a 200 OK status code
And
the response is the Team collection
And
the response contains 1 Team

Last published almost 7 years ago by semmons99.