API - Retrieve roles by namespace

Endpoints:

  • GET {api_url}/auth/admin/tenants/{tenantId}/roles

Required scopes:

  • auth.roles.list

Request Parameters Properties (JSON)

  • filter - JSON for filtering the selection. Convert the input that you are going to send through the filter parameter from an object into a string.

    Example: {api_url}/auth/admin/tenants/{tenantId}/roles?filter=JSON.stringify({where: {namespaceId: 1}})

In that example we retrieved the roles with the specified namespaceId 1.

For more information about the filter parameter go to the Loopback Documentation

Expected success response:

Status code 200 with an array of the found roles on the database as the response body.