Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backend] Endpoint with list of current roles and associated permissions #353

Closed
3 tasks done
carltonsmith opened this issue Oct 21, 2020 · 2 comments
Closed
3 tasks done
Assignees

Comments

@carltonsmith
Copy link

carltonsmith commented Oct 21, 2020

Description

The issue will deliver an endpoint that provides a list of current roles and associated permissions

Tasks

  • Tests to cover list of roles and associated permissions endpoint
  • Create endpoint to return a list of roles and associated permissions

AC

  • Demonstrated GET request will return results like the following
{
  "role": {
    "name": "Data Prepper"
    "permissions": {
        "data": "can create",
        "data": "can edit",
        "data": "can delete"
    }
  }
},
{
  "role": {
    "name": "OFA Admin"
    "permissions": {
        "data": "can create",
        "data": "can edit",
        "data": "can delete",
        "user": "can edit",
        "user": "can delete",
        "stt": "can create",
        "stt": "can edit",
        "stt": "can delete"
    }
  }
},

Notes

  • At this point I'm not exactly sure how the response will be shaped. My intent is just to return it in a default way to save time and effort, so I will update here once I have more certainty on that.
@carltonsmith
Copy link
Author

@kniz-raft This was actually completed as part of #309 so it can be closed from my perspective

@kniz-raft
Copy link

@lfrohlich Based on Carl's comment, are you okay to close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants