cyntaria / ConstructionERP-Backend

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 accounts, so that I can create user accounts for inspectors and on-site managers #23

Open arafaysaleem opened 3 years ago

arafaysaleem commented 3 years ago

Summary

As a contractor, I should be able to create accounts, so that I can create user accounts for inspectors and on-site managers.

Acceptance Criteria

GIVEN an contractor is creating a user account in the desktop app WHEN the app hits the /persons 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

headers: {
    error: 0,
    message: "..."
}
body: {
    first_name: "...",
    ...
    token: "..."
}

Resources

Dev Notes

{Some complementary notes if necessary}

Testing Notes

{notes for QA, with examples if applicable}