I am following the Watson Document Translation process - https://console.bluemix.net/docs/services/language-translator/translating-documents.html#document-translator-tutorial
and I have submitted a pdf document, seen that it has been translated successfully and is showing as status available, but when I try to retrieve the translated document I get the error -
{
"error" : "combination of GET with action documents-translated-document is not valid",
"code" : 400
}
For the URI
https://gateway.watsonplatform.net/language-translator/api/v3/documents/067ca901-68b9-4cd0-861d-e6010d53b439/translated-document?version=2018-05-01
What is the correct url / method that I should be using?
Answer by @chughts (12979) | Dec 21, 2018 at 06:22 PM
Got it - The API Documentation https://cloud.ibm.com/apidocs/language-translator#get-translated-document has an error. The url should be
https://gateway.watsonplatform.net/language-translator/api/v3/documents/067ca901-68b9-4cd0-861d-e6010d53b439/translated_document?version=2018-05-01
ie
translated_document
and not
translated-document