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 collaboratorPlans
TODO: Document Purpose and Usage
- Scenarios
-
- Fetching the root Plan collection.
- Fetching a Plan.
- Fetching multiple Plans.
- Fetching an invalid Plan.
- Searching for a Plan.
- Searching for multiple Plans.
- Searching for an invalid Plan.
- 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.