{ "opencollection": "1.0.0", "info": { "name": "Microsoft Azure AccessControlClient AccessConnector Translate API", "version": "2020-08-01-preview" }, "items": [ { "info": { "name": "Translate", "type": "folder" }, "items": [ { "info": { "name": "Microsoft Azure Translate Text", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/translate", "headers": [ { "name": "X-ClientTraceId", "value": "" } ], "params": [ { "name": "to", "value": "", "type": "query", "description": "Specifies the language of the output text. The target language must be one of the supported languages included \nin the translation scope. For example, use to=de to translate to German.\nIt's possible to translate to multiple languages simultaneously by repeating the parameter in the query string. \nFor example, use to=de&to=it to translate to German and Italian." }, { "name": "from", "value": "", "type": "query", "description": "Specifies the language of the input text. Find which languages are available to translate from by \nlooking up supported languages using the translation scope. If the from parameter isn't specified, \nautomatic language detection is applied to determine the source language.\n\nYou must use the from parameter rather than autodetection when using the dynamic dictionary feature. \nNote: the dynamic dictionary feature is case-sensitive." }, { "name": "textType", "value": "", "type": "query", "description": "Defines whether the text being translated is plain text or HTML text. Any HTML needs to be a well-formed, \ncomplete element. Possible values are: plain (default) or html." }, { "name": "category", "value": "", "type": "query", "description": "A string specifying the category (domain) of the translation. This parameter is used to get translations \nfrom a customized system built with Custom Translator. Add the Category ID from your Custom Translator \nproject details to this parameter to use your deployed customized system. Default value is: general." }, { "name": "profanityAction", "value": "", "type": "query", "description": "Specifies how profanities should be treated in translations.\nPossible values are: NoAction (default), Marked or Deleted." }, { "name": "profanityMarker", "value": "", "type": "query", "description": "Specifies how profanities should be marked in translations.\nPossible values are: Asterisk (default) or Tag. " }, { "name": "includeAlignment", "value": "", "type": "query", "description": "Specifies whether to include alignment projection from source text to translated text.\nPossible values are: true or false (default)." }, { "name": "includeSentenceLength", "value": "", "type": "query", "description": "Specifies whether to include sentence boundaries for the input text and the translated text.\nPossible values are: true or false (default)." }, { "name": "suggestedFrom", "value": "", "type": "query", "description": "Specifies a fallback language if the language of the input text can't be identified. \nLanguage autodetection is applied when the from parameter is omitted. If detection fails, \nthe suggestedFrom language will be assumed." }, { "name": "fromScript", "value": "", "type": "query", "description": "Specifies the script of the input text." }, { "name": "toScript", "value": "", "type": "query", "description": "Specifies the script of the translated text." }, { "name": "allowFallback", "value": "", "type": "query", "description": "Specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. \nPossible values are: true (default) or false.\n\nallowFallback=false specifies that the translation should only use systems trained for the category specified \nby the request. If a translation for language X to language Y requires chaining through a pivot language E, \nthen all the systems in the chain (X → E and E → Y) will need to be custom and have the same category. \nIf no system is found with the specific category, the request will return a 400 status code. allowFallback=true \nspecifies that the service is allowed to fall back to a general system when a custom system doesn't exist." }, { "name": "api-version", "value": "", "type": "query", "description": "Mandatory API version parameter" } ] }, "docs": "Translate Text" } ] } ], "bundled": true }