API URL | /cfg/chk/skin |
Description | Check CMS skin info RESTFul API |
Access | Restricted to roles: admin, demo |
Rquest method | POST |
Request data type | Request raw data |
Request data |
{
id: 'skin-id', // ex. 'christmas'
active: '1', // 1 - skin is active, 0 - skin is inactive
name: 'skin-name', // ex. 'Christmas'
dir: 'path-to-skin-folder', // ex. '/cms/skins/christmas'
template_dir: 'path-to-skin-templates-folder', // ex. '/cms/skins/christmas/templates'
locale_msg: 'locale-messages-file-name', // ex. 'skin'
locale: 'path-to-skin-locale-folder', // ex. '/cms/skins/christmas/locale"'
css: [ // css include files list
{ // css include file
id: 'file id', // ex. 'superfish'
data: 'file path', // ex. '/cms/srv/lib/superfish-1.7.4/css/superfish.css'
}
...
],
js: [ // js include files list
{
id: 'file id', // ex. 'md5'
data: 'file path' // ex. '/cms/srv/lib/jshash-2.2/md5-min.js'
}
...
],
include: { // includes to be included in every page
css: [ // css includes
['file id', 'filter token', 'language code'],
...
],
js: [ // js includes
['file id', filter token', 'language code'],
...
]
}
}
|
Response type | JSON |
Response data |
{
rc: 'return code', // '0' - success, '1' - error
msg: 'return message' // error message
data: { // errors in configuration; empty if there are no errors
'error-type': 'error message'
...
}
}
Error types:
|