GET /api/roles
List all roles.

Params

Param Name Description
page
Optional

paginazione risultati


Value:

Must be String

per_page
Optional

numero di voci per richiesta


Value:

Must be String


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

Params

Param Name Description
id
Required

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.

Params

Param Name Description
role
Required

Value:

Must be a Hash

role[name]
Required

Value:

Must be String


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

Params

Param Name Description
id
Required

Value:

Must be String

role
Required

Value:

Must be a Hash

role[name]
Optional

Value:

Must be String


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

Params

Param Name Description
id
Required

Value:

Must be String