As a contractor, I should be able to get all milestone stages, so that I can review their status.
Acceptance Criteria
Scenario 1: Get all possible milestone stages
GIVEN an contractor is requesting all possible milestone stages in the desktop app
WHEN the app hits the /milestone-stages endpoint with a valid GET request
THEN the app should receive a status 200AND in the response, the following information should be returned:
Scenario 2: Get all milestone stages filtered by approval status
GIVEN an contractor is requesting all possible milestone stages in the desktop app
WHEN the app hits the /milestone-stages endpoint with a valid GET request containing query parameters:
is_approved="bool", where bool is 1 or 0 indicating approval.
THEN the app should receive a status 200AND in the response, the following information should be returned:
headers
list of milestone stages with that approval status
Sample Request/Sample Response
For e.g. we want all milestone stages that haven't been approved yet i.e. is_approved=0
Scenario 3: Get all milestone stages for a project role
GIVEN an contractor is requesting all possible milestone stages assigned to a project role in the desktop app
WHEN the app hits the /milestone-stages endpoint with a valid GET request containing query parameters:
project_role_id=some_id, where some_id is the project_role_id of the person.
THEN the app should receive a status 200AND in the response, the following information should be returned:
headers
list of milestone stages with assigned to that person
Sample Request/Sample Response
For e.g. we want all milestone stages with project_role_id=1
Summary
As a
contractor
, I should be able to get all milestone stages, so that I can review their status.Acceptance Criteria
Scenario 1: Get all possible milestone stages
GIVEN an
contractor
is requesting all possible milestone stages in the desktop app WHEN the app hits the/milestone-stages
endpoint with a valid GET request THEN the app should receive a status200
AND in the response, the following information should be returned:Sample Request/Sample Response
Scenario 2: Get all milestone stages filtered by approval status
GIVEN an
contractor
is requesting all possible milestone stages in the desktop app WHEN the app hits the/milestone-stages
endpoint with a valid GET request containing query parameters:is_approved="bool"
, where bool is 1 or 0 indicating approval.THEN the app should receive a status
200
AND in the response, the following information should be returned:Sample Request/Sample Response For e.g. we want all milestone stages that haven't been approved yet i.e. is_approved=0
Scenario 3: Get all milestone stages for a project role
GIVEN an
contractor
is requesting all possible milestone stages assigned to a project role in the desktop app WHEN the app hits the/milestone-stages
endpoint with a valid GET request containing query parameters:project_role_id=some_id
, where some_id is the project_role_id of the person.THEN the app should receive a status
200
AND in the response, the following information should be returned:Sample Request/Sample Response For e.g. we want all milestone stages with project_role_id=1
Resources
Dev Notes
none
Testing Notes
{notes for QA, with examples if applicable}