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 get all possible materials, so that I can order them in milestones #59

Open arafaysaleem opened 3 years ago

arafaysaleem commented 3 years ago

Summary

As a contractor, I should be able to get all possible materials, so that I can order them in milestones.

Acceptance Criteria

GIVEN an contractor is requesting all possible materials in the desktop app WHEN the app hits the /materials endpoint with a valid GET request THEN the app should receive a status 200 AND in the response, the following information should be returned:

Sample Request/Sample Response

headers: {
    error: 0,
    message: "..."
}
body: [
    {
        mat_id: 0,
        material: "cement"
    },
    {
        mat_id: 1,
        material: "bricks"
    },
    ....
]

Resources

Dev Notes

This endpoint is going to be accessible and work the same way for the product owner as well.

Testing Notes

{notes for QA, with examples if applicable}