Language
Language
The language
endpoint shows a list of available OCNCC languages.
GET /api/language
Retrieve a list of languages.
Response Content
The response will be a JSON array of objects, with each object consisting of the following information.
Key | Type | Description |
---|---|---|
id |
Integer | The ID for the language. |
name |
String | The name of the language. |
Examples
Request:
curl 'http://localhost/jarvis-agent/n2fe/api/language' -H 'Cookie: N2FE_CGISESSID=4876c530f3d7252330a95ea51007f252'
Response:
[
{
"name" : "English",
"id" : 1
},
{
"id" : 2,
"name" : "French"
},
{
"name" : "Mandarin",
"id" : 3
}
]