Related Discovery: https://openedx.atlassian.net/wiki/spaces/OEPM/pages/6060310529/Spike+-+M2+-+Endpoints+for+new+Admin+Console+designs
Implement the scopes endpoint to be used in scopes filters.
Spec:
GET /api/authz/v1/scopes/
- Query params:
- page_size (optional): For pagination
- page (optional): For pagination
- org (optional): For filtering by org
- search (optional): For searching by scope name
- management_permission_only (default false): This will be used to filter either by only scopes that have “management“ permissions (if true), or just view permissions.
- Needs to filter to only relevant scopes (courses or libraries) that the calling user has view access
- Always sort by org
Response fields:
Please note: The response fields are wrapped around the standard pagination response.
external_key: (str)
display_name: (str)
org: (Organization model)
Related Discovery: https://openedx.atlassian.net/wiki/spaces/OEPM/pages/6060310529/Spike+-+M2+-+Endpoints+for+new+Admin+Console+designs
Implement the scopes endpoint to be used in scopes filters.
Spec:
GET /api/authz/v1/scopes/
Response fields:
Please note: The response fields are wrapped around the standard pagination response.
external_key: (str)
display_name: (str)
org: (Organization model)