Download
Last stable v 5.2 2024-11-01
API URL | /url/get/:id |
Description | Get CMS menu 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: 'menu id in DB table', // ex. '1'
doc_id: 'assigned to menu page id in DB table', // ex. '1'
doc_dir_id: 'page folder id in DB table', // ex. '2'
folder: '', // '1' - menu item is folder
seq: "XXXXXXX", // unique SEQ
title: 'menu title', // ex. 'Samples'
title_doc: 'page title', // ex. 'Samples'
title_full: 'page extended title', // ex. 'All samples related to something'
desc: 'page description',
keyw: 'page keywords',
lang: 'page language id' // ex 'en'
name: 'menu name', //ex. 'Samples'
class: 'menu item class name', // class to be assigned to <li> item in menu list
class_list: 'menu list class name', // class to be assigned to <ul> item in menu list
type: 'type code', // 0 - regular, 1 - hidden, 2 - loggen in, 3 - logged off
lang: 'languge_id', // ex. 'en'
url: 'menu URL', // ex. '/samples'
url_target: 'a href tag target', // ex. '_blank'
active: '0', // 1 - will assign class 'surrent' by default
default: '0', // 1 - mnu template plugin will select as default in starting not from begining
path: '1', // 1 - include in template pth plugin
public: '1', // 1 - page public available, 0 - no public available
public_start: '0000-00-00 00:00:00', // when page public availability starts (if public=1)
public_stop: '9999-00-00 00:00:00', // when page public availability stops (if public=1)
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
}
}
}
|