ロールの取得
ロール一覧を取得することができます。
URL
http://{AppPot Server name}:{Port}/{Context root}/api/{companyId}/{appId}/{appVersion}/roles
認証
ユーザー認証が完了している必要があります。
- Content-Type: application/json
- apppot-token: token
Name |
Data Format |
Description |
apppot-token |
String |
(Required) Login APIの結果得られたユーザートークン |
Response example
{
"results":[
{
"roleId":1,
"roleName":"AppPot Admin",
"description":"AppPot Admin",
"companyId":null
},
{
"roleId":2,
"roleName":"Super Admin",
"description":"Super Admin",
"companyId":null
},
{
"roleId":3,
"roleName":"Admin",
"description":"Admin",
"companyId":null
},
{
"roleId":4,
"roleName":"Manager",
"description":"Manager",
"companyId":null
},
{
"roleId":5,
"roleName":"User",
"description":"User",
"companyId":null
},
{
"roleId":6,
"roleName":"Developer",
"description":"Developer",
"companyId":null
}
{
"roleId":7,
"roleName":"CustomUser1",
"description":"CustomUser1",
"companyId":1
},
{
"roleId":8,
"roleName":"CustomUser2",
"description":"CustomUser2",
"companyId":1
}
],
"errCode":"0",
"status":"OK"
}
Response properties
Name |
Data Format |
Description |
errCode |
int |
Response error code: 0, 120, 121, 122, 132 |
results |
List<Role> |
(Optional) Response results |
description |
String |
(Required) Detail response description |