As a contractor, I should be able to create milestone stages, so that I can assign persons to it and dictate the quality of work done during a milestone #85
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 create milestone stages, so that I can assign persons to it and dictate the quality of work done during a milestone.Acceptance Criteria
GIVEN an
contractor
is creating a milestone stage in the desktop appWHEN the app hits the
/milestone-stages
endpoint with a valid POST request, containing:THEN the app should receive a status
201
AND in the response, the following information should be returned:
Sample Request/Sample Response
Resources
Dev Notes
{Some complementary notes if necessary}
Testing Notes
Scenario 1: POST request is successful
/milestone-stages
endpoint and ensure a 201 status code is returned.id
returned by the response in a subsequent GET request to/milestone-stages/:id
endpoint and ensure a 200 status code is returned.Scenario 2: POST request is incorrect
/milestone-stages
endpoint with the body containing an incorrect key.code
parameter should contain an error pointing out failed validation.Scenario 3: POST request is forbidden
/milestone-stages
endpoint with ainspector
account token.code
parameter should contain an error pointing out failed access.The text was updated successfully, but these errors were encountered: