jasoncolburne/arad

[node-administrator:endpoints] For role assignment

Closed this issue · 1 comments

  • GET /roles
  • GET /users (paginate)
  • PUT /user/${user_id}/revoke_role_assignment/${role_id}
  • POST /user/${user_id}/assign_role/${role_id}

Why can't we just hardcode the roles? It would be brittle. Imagine the seed data for the DB changed from system to system. That's not great either, but if we just GET roles we don't need to worry.

Ended up parametrizing assign/revoke at /role