GET /api/roles
ロール一覧

Params

Param Name Description
search
Optional

結果をフィルタ


Value: Must be String
order
Optional

結果をソート


Value: Must be String
page
Optional

結果をページ分割


Value: Must be String
per_page
Optional

リクエストあたりのエントリ数


Value: Must be String

GET /api/roles/:id
ロールを表示

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
ロールを作成

Params

Param Name Description
role
Required

Value: Must be a Hash
role[name]
Required

Value: Must be String

PUT /api/roles/:id
ロールを更新

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
ロールを削除

Params

Param Name Description
id
Required

Value: Must be String