As a contractor, I should be able to get all milestone stages, so that I can review their status #90
Labels
user story
A brief explanation of a functionality or an interaction with the system, from a user's perspective
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 appWHEN the app hits the
/milestone-stages
endpoint with a valid GET requestTHEN the app should receive a status
200
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 appWHEN 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 appWHEN 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}
The text was updated successfully, but these errors were encountered: