GET /api/roles
List all roles.

Parâmentros

Nome parâmetro Descrição
page
opcional

paginar resultados


Value:

Must be String

per_page
opcional

número de entradas por requisições


Value:

Must be String


GET /api/roles/:id
Show an role.

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/roles
Create an role.

Parâmentros

Nome parâmetro Descrição
role
requerido

Value:

Must be a Hash

role[name]
requerido

Value:

Must be String


PUT /api/roles/:id
Update an role.

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

Must be String

role
requerido

Value:

Must be a Hash

role[name]
opcional

Value:

Must be String


DELETE /api/roles/:id
Delete an role.

Parâmentros

Nome parâmetro Descrição
id
requerido

Value:

Must be String