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 product owner, I should be able to get all possible permissions, so that I can assign them to a person to control their access to modules #42

Open arafaysaleem opened 3 years ago

arafaysaleem commented 3 years ago

Summary

As a product owner, I should be able to get all possible permissions, so that I can assign them to a person to control their access to modules.

Acceptance Criteria

Scenario: Search for all possible roles

GIVEN an product owner is requesting all possible permissions in the desktop app WHEN the app hits the /permissions 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: [
    {
        perm_id: 0,
        permission: "read"
    },
    {
        perm_id: 5,
        permission: "write"
    },
    ....
]

Resources

Dev Notes

{Some complementary notes if necessary}

Testing Notes

{notes for QA, with examples if applicable}