Requesting for translated text

POST /translate

Request for text

Body Required

  • text string
  • from string
  • to string

Responses

  • 400

    Invalid ID supplied

  • 404

    file not found

  • 405

    Validation exception

  • 200

    Successful operation

    Hide response attribute Show response attribute object
    • translations object
      Hide translations attributes Show translations attributes object
      • text string
      • to string
POST /translate
curl \
 -X POST https://tekinatranslate.onrender.com/translate \
 -H "Content-Type: application/json" \
 -d '{"text":"hi this is aniket","from":"en","to":"hi"}'
Request example
{
  "text": "hi this is aniket",
  "from": "en",
  "to": "hi"
}
Request examples
{
  "text": "hi this is aniket",
  "from": "en",
  "to": "hi"
}
Response examples (200)
{
  "translations": {
    "text": "हाय यह अनिकेत है",
    "to": "hi"
  }
}
Response examples (200)
{
  "translations": {
    "text": "हाय यह अनिकेत है",
    "to": "hi"
  }
}