Get Languages

End Point: [TMEngine URL]/languages
Default: http://localhost:8000/TMServer/languages
Send a 'POST' request to the method end point with this parameter in a JSON body:
Field Required Content
id Yes ID of the memory to query
Example:
{
  "id": "1568163112456"
}
The server responds with a JSON object containing two fields.
On success, field 'status' is set to 'OK' and field 'process' contains the ID of the background query process that was initiated.
{
  "process": "1568222345683",
  "status": "OK"
}
On error, field 'status' is set to 'failed' and field 'reason' contains the error cause.
{
  "status": "failed",            
  "reason": "Unknown memory type"        
}
After starting the query process, monitor its status using the Get Process Status method. On successful completion, the data field will contain a list of languages present in the memory.
Example:
{
  "result": "Completed",
  "data": {
    "languages": [ "es", "en" ]
  },
  "status": "OK"
}