Logo: Relish

  1. Sign in

Project: Apiv3

Plans

TODO: Document Purpose and Usage

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

Last published almost 7 years ago by semmons99.