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

New Structure of routes.json with access specifiers #117

Open
YashKumarVerma opened this issue Jul 4, 2021 · 1 comment
Open

New Structure of routes.json with access specifiers #117

YashKumarVerma opened this issue Jul 4, 2021 · 1 comment

Comments

@YashKumarVerma
Copy link
Contributor

YashKumarVerma commented Jul 4, 2021

Is your feature request related to a problem? Please describe.

  • to clearly map user types/roles to resources, a new property is added to each of the route entries.
  • this entry is used to uniquely identify the resource so that further application logic can be implemented.

Describe the solution you'd like

https://i.imgur.com/OHwjDDE.png

  • by adding a new property which specify the resource (i.e. /slide) and the operation on it (i.e. /create, /delete ...)
{
   "route": "/data/Template/post",
   "method": "post",
   "access": {
     "entity": "template",
     "operation": "create"
   },
   "handlers": []
 }
@Udit-takkar
Copy link

Can you close all resolved isuues ?

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

No branches or pull requests

2 participants