## Path: / admin / realms / {realm} / roles

List all roles for this realm or application

Path parameters:
  realm - realm name (not id!)

Sub-Resources

  Resources
  Name | Description
  --- | ---
  {role-name} | Get a role by name

Resource Methods

  Method Summary
  Name | Description
  --- | ---
  `GET /admin/realms/{realm}/roles` | List all roles for this realm or application
  `POST /admin/realms/{realm}/roles` | Create a new role for this realm or application

Method Detail
  ### GET /admin/realms/{realm}/roles List all roles for this realm or application HTTP Example:
      GET /admin/realms/{realm}/roles
Output: `List<RoleRepresentation>` - Produces: application/json
  ### POST /admin/realms/{realm}/roles Create a new role for this realm or application HTTP Example:
      POST /admin/realms/{realm}/roles
Input: `RoleRepresentation` Output: `Response` - Consumes: application/json