As a product owner, I should be able to create roles, so that I can assign them to persons/laborers #35
Labels
user story
A brief explanation of a functionality or an interaction with the system, from a user's perspective
Summary
As a
product owner
, I should be able to create roles, so that I can assign them to persons/laborers.Acceptance Criteria
GIVEN an
product owner
is creating a role in the desktop appWHEN the app hits the
/roles
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: POST request is successful
/roles
endpoint and ensure a201
status code is returned.id
returned by the response in a subsequent GET request to/roles/:id
endpoint and ensure a200
status code is returned.Scenario: POST request is incorrect
/roles
endpoint with therole_type
containing a value not in [app_user,laborer].422
status code is returnedcode
parameter should contain an error pointing out failed validation.The text was updated successfully, but these errors were encountered: