| 信息 |
|---|
调用须知:
|
| 接口信息 | |||
|---|---|---|---|
| 名称 | 根据空间key获取此空间下的所有权限信息 | ||
| 地址 | /rest/tools/1.0/api/spacePermission/getSpacePermissionByKey | ||
| 请求方式 | GET | ||
| 返回类型格式 | Json | ||
| 认证方式 | Basic,token认证 | ||
| 参数说明 | |||
| 参数名称 | 是否必须 | 参数类型 | 描述 |
| key | Y | String | 空间key |
| 返回值格式 | |||
| 返回字段 | 类型 | 描述 | |
| code | int | 见附录-码值 | |
| msg | String | 见附录-码值 | |
| data | String | { "anonymous":[{ "permissionsBeans": [{ "id": 拥有的权限id, "type": "拥有的权限类型" },{ "id": 1638443, "type": "REMOVEBLOG" }] }], “user”:[{ "name": "用户名", "userInfo":{ "name":用户名, "key":用户key, "fullName":全名 } "permissionsBeans": [{ "id": 拥有的权限id, "type": "拥有的权限类型" },{ "id": 1638443, "type": "REMOVEBLOG" }] }], “group”:[{ "name": "组名", "permissionsBeans": [{ "id": 拥有的权限id, "type": "拥有的权限类型" },{ "id": 1638443, "type": "REMOVEBLOG" }] }] } | |
Postman调用示例
返回值示例:
| 代码块 |
|---|
{
"code": 0,
"msg": "Success",
"data": {
"anonymous": [
{
"permissionsBeans": [
{
"id": 950308,
"type": "VIEWSPACE"
}
]
}
],
"user": [
{
"name": "admin",
"userInfo": {
"name": "admin",
"key": "2c9d829d6e61f011016e61f143ff0000",
"fullName": "admin",
"email": "admin@example.com"
},
"permissionsBeans": [
{
"id": 950344,
"type": "SETSPACEPERMISSIONS"
},
{
"id": 950332,
"type": "VIEWSPACE"
},
{
"id": 950336,
"type": "EDITSPACE"
}
]
},
{
"name": "tt-david",
"userInfo": {
"name": "tt-david",
"key": "4028d025818a2ae201818a896b380000",
"fullName": "David",
"email": "david@shdsd.com"
},
"permissionsBeans": [
{
"id": 950331,
"type": "SETSPACEPERMISSIONS"
},
{
"id": 950330,
"type": "VIEWSPACE"
}
]
}
],
"group": [
{
"name": "confluence-users",
"permissionsBeans": [
{
"id": 950288,
"type": "COMMENT"
},
{
"id": 950290,
"type": "EXPORTSPACE"
},
{
"id": 950293,
"type": "CREATEATTACHMENT"
},
{
"id": 950292,
"type": "REMOVEOWNCONTENT"
},
{
"id": 950287,
"type": "EDITBLOG"
},
{
"id": 950289,
"type": "EDITSPACE"
},
{
"id": 950291,
"type": "VIEWSPACE"
}
]
}
]
}
} |
