get:
  operationId: getRoleEntitlements
  summary: Get Entitlements for a Role
  tags:
    - IAI Data Roles
  description: >-
    This endpoint gets the entitlements in a role. (This endpoint does not get entitlements in a role that's contained in given role.)
  parameters:
    - in: path
      name: roleId
      schema:
        type: string
      required: true
      description: The role id
      example: 8c190e67-87aa-4ed9-a90b-d9d5344523fb
    - $ref: '../../v3/parameters/offset.yaml'
    - $ref: '../../v3/parameters/limit.yaml'
    - $ref: '../../v3/parameters/count.yaml'
    - in: query
      name: sorters
      description: sort by name
      required: false
      style: form
      explode: true
      schema:
        type: string
    - in: query
      name: filters
      description: filter param by "starts with" for name
      required: false
      style: form
      explode: true
      schema:
        type: string
  responses:
    '200':
      description: Succeeded. Returns a list of entitlements for all the identities in a role
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '../schemas/IaiDataRoleEntitlement.yaml'
    '400':
      $ref: '../../v3/responses/400.yaml'
    '401':
      $ref: '../../v3/responses/401.yaml'
    '403':
      $ref: '../../v3/responses/403.yaml'
    '500':
      $ref: '../../v3/responses/500.yaml'
