Logo: Relish

  1. Sign in

Project: Apiv3

Time Zones

TODO: Document Purpose and Usage

Scenarios
Fetching the root Time Zone collection.
When
I GET to /time_zones
Then
I should get a 200 OK status code
And
the response is the Time Zone collection
And
the response contains all Time Zones
Fetching a Time Zone.
Given
I have 1 Time Zone
When
I GET to /time_zones/:time_zone_id giving the time_zone_id
Then
I should get a 200 OK status code
And
the response is the Time Zone collection
And
the response contains 1 Time Zone
Fetching multiple Time Zones.
Given
I have 2 Time Zones
When
I GET to /time_zones/:time_zone_id giving the time_zone_id
Then
I should get a 200 OK status code
And
the response is the Time Zone collection
And
the response contains 2 Time Zones
Fetching an invalid Time Zone.
Given
I have an invalid Time Zone
When
I GET to /time_zones/:time_zone_id giving the time_zone_id
Then
I should get a 404 NOT FOUND status code
Searching for a Time Zone.
Given
I have 1 Time Zone
When
I GET to /time_zones/search?id=:time_zone_id giving the time_zone_id
Then
I should get a 200 OK status code
And
the response is the Time Zone collection
And
the response contains 1 Time Zone
Searching for multiple Time Zones.
Given
I have 2 Time Zones
When
I GET to /time_zones/search?id=:time_zone_id giving the time_zone_id
Then
I should get a 200 OK status code
And
the response is the Time Zone collection
And
the response contains 2 Time Zones
Searching for an invalid Time Zone.
Given
I have an invalid Time Zone
When
I GET to /time_zones/search?id=:time_zone_id giving the time_zone_id
Then
I should get a 200 OK status code
And
the response is the Time Zone collection
And
the response contains 0 Time Zones

Last published almost 7 years ago by semmons99.