API URL | /lang/:code |
Description | Switch site to language RESTFul API |
Access | free |
Rquest method | GET |
Request data type | URL route parameters |
Request data |
|
Response type | JSON |
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. '/'
]
}
|