API URL/lang/:code
    DescriptionSwitch site to language RESTFul API
    Accessfree
    Rquest methodGET
    Request data typeURL route parameters
    Request data
    • :code - language code
    Response typeJSON
    Response data
    { rc: 'return code', // '0' - success, '1' - error msg: 'return message', // error message data:[ lang_code: 'language code', // ex 'eng' lang_id: 'language id', // ex. 'en' lang_name: 'language name', // ex. 'English' lang_url: 'language url' // ex. '/' ] }