As a contractor, I should be able to get all payments for a milestone, so that I can review the cash spending #71
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 payments for a milestone, so that I can review the cash spending.Acceptance Criteria
Scenario 1: Search for all possible payments in a milestone
GIVEN an
contractor
is requesting all possible payments in the desktop appWHEN the app hits the
/milestones/:id/payments
endpoint with a valid GET request, containing the path parameter::id
, the unique id of the milestone for which the payments are needed.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. If we request payments for milestone id 2:
Scenario 2: Search for all payments in a milestone by payment type
GIVEN an
contractor
is requesting all payments for a payment type in the desktop appWHEN the app hits the
/milestones/:id/payments
endpoint with a valid GET request, containing:-":id
, the unique id of the milestone for which the payments are needed.pay_type_id="some_id"
, where some_id is the pay_type_id of that payment type**THEN the app should receive a status
200
AND in the response, the following information should be returned:
Sample Request/Sample Response
For query parameter pay_type_id=3:
Resources
Dev Notes
Display pay_type name instead of id in response json
Testing Notes
{notes for QA, with examples if applicable}
The text was updated successfully, but these errors were encountered: