Download
Last stable v 5.2 2024-11-01
API URL | /cfg/dbi |
Description | Get CMS site and DB active connector info RESTFul API |
Access | Restricted to roles: only builtin administrator can get info |
Rquest method | GET |
Request data type | n/a |
Request data | n/a |
Response type | JSON |
Response data |
{
rc: 'return code', // '0' - success, '1' - error
msg: 'return message', // error message
data: {
site: {
code: 'site code', // ex. 'cms_demo'
name: 'site name', // ex. 'KUSoftas CMS'
url: 'site_URL' // ex. 'www.kusoftas.com'
},
db: {
id: 'connector id', // ex. 'sqlite'
type: 'connector type', // ex. 'sqlite', 'mysql'
srv: 'connector server address', // ex. '/cms/data/cms.sqlite'
uid: 'connector server user id', // ex. 'dbuser' (applicable when MySQL server)
psw: 'connector server user password', // ex. 'dbpassword' (applicable when MySQL server)
sch: 'connector serevr schema' // ex. 'cms_demo' (applicable when MySQL server)
}
}
}
|