A REST API backend system for the construction ERP software made with NodeJS
Creative Commons Zero v1.0 Universal
0
stars
0
forks
source link
As a contractor, I should be able to create projects, so that I can setup construction projects #76
Open
arafaysaleem opened 3 years ago
Summary
As a
contractor
, I should be able to create projects, so that I can setup construction projects.Acceptance Criteria
GIVEN an
contractor
is creating a project in the desktop app WHEN the app hits the/projects
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
/projects
endpoint and ensure a 201 status code is returned.id
returned by the response in a subsequent GET request to/projects/:id
endpoint and ensure a 200 status code is returned.Scenario 2: POST request is incorrect
/projects
endpoint with the body containing an incorrect key.code
parameter should contain an error pointing out failed validation.Scenario 3: POST request is forbidden
/projects
endpoint with ainspector
account token.code
parameter should contain an error pointing out failed access.