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 end user, I should be able to action, so that I can benefit #44

Closed arafaysaleem closed 3 years ago

arafaysaleem commented 3 years ago

Summary

As a contractor, I should be able to get details of a single label, so that I can understand what kind of work it describes/represents.

Acceptance Criteria

GIVEN a contractor is requesting details of a label in the desktop app WHEN the app hits the labels/:id endpoint with a valid GET request, containing the path parameter:

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: {
    label_id: 0,
    label: "interior"
}

Resources

Dev Notes

This endpoint is accessible by and serves the product owner in the same way.

Testing Notes

GIVEN a contractor is requesting details of a label in the desktop app WHEN the app hits the labels/:id endpoint with a valid GET request, containing the path parameter:

THEN the app should receive a status 200 AND the {id} in the body should be same as the :id in the path parameter

arafaysaleem commented 3 years ago

Duplicate of #45