To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorSports
TODO: Document Purpose and Usage
- Scenarios
-
- Fetching the root Sport collection.
- Fetching a Sport.
- Fetching an invalid Sport.
- Searching for a Sport.
- Searching for multiple Sports.
- Searching for an invalid Sport.
- Fetching the root Sport collection.
-
- When
- I GET to /sports
- Then
- I should get a 200 OK status code
- And
- the response is the Sport collection
- And
- the response contains all Sports
- Fetching a Sport.
-
- Given
- I have 1 Sport
- When
- I GET to /sports/:sport_id giving the sport_id
- Then
- I should get a 200 OK status code
- And
- the response is the Sport collection
- And
- the response contains 1 Sport
- Fetching an invalid Sport.
-
- Given
- I have an invalid Sport
- When
- I GET to /sports/:sport_id giving the sport_id
- Then
- I should get a 404 NOT FOUND status code
- Searching for a Sport.
-
- Given
- I have 1 Sport
- When
- I GET to /sports/search?id=:sport_id giving the sport_id
- Then
- I should get a 200 OK status code
- And
- the response is the Sport collection
- And
- the response contains 1 Sport
- Searching for multiple Sports.
-
- Given
- I have 2 Sports
- When
- I GET to /sports/search?id=:sport_id giving the sport_id
- Then
- I should get a 200 OK status code
- And
- the response is the Sport collection
- And
- the response contains 2 Sports
- Searching for an invalid Sport.
-
- Given
- I have an invalid Sport
- When
- I GET to /sports/search?id=:sport_id giving the sport_id
- Then
- I should get a 200 OK status code
- And
- the response is the Sport collection
- And
- the response contains 0 Sports
Last published almost 7 years ago by semmons99.