/lng/get/:id

    API URL/lng/get/:id
    DescriptionGet CMS language info RESTFul API
    AccessRestricted to roles: admin, demo
    Rquest methodGET
    Request data typeURL route parameters
    Request data
    • :id - language code in DB table
    Response typeJSON
    Response data
    { rc: 'return code', // '0' - success, '1' - error msg: 'success', // error message data: { id: 'language id in DB table', // ex. '1' doc_id: 'assigned to language default page id in DB table', // ex. '1' doc_dir_id: 'page folder ID', // ex. '1' name: 'language name', // ex. "English" title: 'assigned to language default page title', // ex. 'Home' (copy of title_doc) title_doc: 'assigned to language default page title', // ex. 'Home' title_full: 'assigned to language default page extended title', // ex. 'All samples related to something' desc: 'assigned to language default page description', keyw: 'assigned to language default page keywords', lang: assigned to language 'default page language id', // ex 'en' type: '0', code: 'language_free_code', // ex. 'eng' code_id: 'language_classificator_id', // ex. 'en' locale: 'locale code', // ex. 'en_US.utf8' short: 'language short name', // ex. 'EN' url: 'language URL', // ex. '/eng' url_alt: 'alternative language URL', // ex. '#eng' (for jQuery onclick event usage) def: '1', // 1 - default site language, 0 - not default public: '1', // 1 - language public available, 0 - no public available public_start: '0000-00-00 00:00:00', // when language public availability starts (if public=1) public_stop: '9999-00-00 00:00:00', // when language 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' last_update: 'last update timestamp', // ex. '2013-08-15 17:09:28' 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 } } }