Logo: Relish

  1. Sign in

Project: Apiv3

Sports

TODO: Document Purpose and Usage

Scenarios
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.