Fill the Gap & Tidy Up Magda Auth Objects Related APIs
We've developed a set of APIs to support auth objects related operations but that effort was mainly for a setting panel UI and didn't cover all use cases.
The following issues need to be addressed:
[x] lack API document
[x] No creation / update APIs for some objects e.g. operations
[x] Some APIs were created with the mixed duty and fail to serve different use cases.
e.g. permission API POST /roles/:roleId/permissions will always attempt to create new permission and associate the permission with the role. There is no way to reuse permission and assign it to multiple roles.
For those APIs, we want to alter the behaviour to cover additional use case without breaking current code
Fill the Gap & Tidy Up Magda Auth Objects Related APIs
We've developed a set of APIs to support auth objects related operations but that effort was mainly for a setting panel UI and didn't cover all use cases.
The following issues need to be addressed:
/roles/:roleId/permissions
will always attempt to create new permission and associate the permission with the role. There is no way to reuse permission and assign it to multiple roles.