Download
Last stable v 5.2 2024-11-01
API URL | /dir/get/:id |
Description | Get CMS pages tree folder info RESTFul API |
Access | Restricted to roles: admin, demo |
Rquest method | GET |
Request data type | URL route parameters |
Request data |
|
Response type | JSON |
Response data |
{
rc: 'return code', // '0' - success, '1' - error
msg: 'success', // error message
data: {
id: 'pages tree folder id in DB table',
seq :'XXXXXXX', // unique SEQ
title: 'folder title',
path: 'path_to_folder',
up: 'parent folder id in DB table',
editor: 'last update editor name', // ex. 'Linkoln Edgar', 'CMS' - if cms builtin administrator
timestamp: 'last update timestamp', // ex. '2013-09-02 15:04:33'
acc: { // access control data
acl: { // access control list
r: { // read permission - actual only in Pages tool
g: ['group code', ...], // group/role permissions, ex. ['admin','demo']
u: ['user id', ...] // user permissions, ex. ['jsmi']
},
w: { // write permission - actual only in Pages tool
g: ['group code', ...],
u: ['user id', ...]
},
e: { // execute permission - controls permission for page execution in browser
g: ['group code', ...],
u: ['user id', ...]
},
m: { // manage permission - actual only in Pages tool
g: ['group code', ...],
u: ['user id', ...]
}
},
acl_inherit: { // inherited access control list; top folder inherits permissions from Pages tool roles: admin, demo (r/o)
r: { // inherited read permission - actual only in Pages tool
g: ['group code', ...], // group/role permissions, ex. ['admin','demo']
u: ['user id', ...] // user permissions, ex. ['jsmi']
},
w: { // inherited write permission - actual only in Pages tool
g: ['group code', ...],
u: ['user id', ...]
},
e: { // inherited execute permission - controls permission for page execution in browser
g: ['group code', ...],
u: ['user id', ...]
},
m: { // inherited manage permission - actual only in Pages tool
g: ['group code', ...],
u: ['user id', ...]
}
},
inherit: '1', // 1 - inheritance is alowed, 0 - inheritance is not alowed
manage: '1' // 1 - logged user has permission to manage folder permissions, 0 - logged user does not have permission to manage folder permissions
}
}
}
|