GET /api/roles
List all roles

Params

Param name Description
search
optional

filter results


Value: Must be String
order
optional

sort results


Value: Must be String
page
optional

paginate results


Value: Must be String
per_page
optional

number of entries per request


Value: Must be String

GET /api/roles/:id
Show a 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 a role

Params

Param name Description
role
required

Value: Must be a Hash
role[name]
required

Value: Must be String

PUT /api/roles/:id
Update a 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 a role

Params

Param name Description
id
required

Value: Must be String