GET /api/roles
List all roles.

Params

Param Name Description
page
Optional

paginer les résultats

Validations:

  • Must be String

per_page
Optional

nombre d’entier par requête

Validations:

  • Must be String


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

Params

Param Name Description
id
Required

Validations:

  • 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

Validations:

  • Must be a Hash

role[name]
Required

Validations:

  • Must be String


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

Params

Param Name Description
id
Required

Validations:

  • Must be String

role
Required

Validations:

  • Must be a Hash

role[name]
Optional

Validations:

  • Must be String


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

Params

Param Name Description
id
Required

Validations:

  • Must be String