GET /api/roles
List all roles.

Params

Param Name Description
page
Optional

페이지네이션 결과

Validations:

  • Must be a String

per_page
Optional

요청 당 항목 수

Validations:

  • Must be a 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 a String


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

Params

Param Name Description
id
Required

Validations:

  • Must be a String

role
Required

Validations:

  • Must be a Hash

role[name]
Optional

Validations:

  • Must be a String


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

Params

Param Name Description
id
Required

Validations:

  • Must be a String