GET /api/roles
List all roles.

パラメーター

パラメーター名 記述
page
任意

結果のページネーション

Validations:

  • Must be a String

per_page
任意

要求ごとのエントリー数

Validations:

  • Must be a String


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

パラメーター

パラメーター名 記述
id
必須

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.

パラメーター

パラメーター名 記述
role
必須

Validations:

  • Must be a Hash

role[name]
必須

Validations:

  • Must be a String


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

パラメーター

パラメーター名 記述
id
必須

Validations:

  • Must be a String

role
必須

Validations:

  • Must be a Hash

role[name]
任意

Validations:

  • Must be a String


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

パラメーター

パラメーター名 記述
id
必須

Validations:

  • Must be a String