POST api/Pretranslate/GetAllTranslation
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
PretranslatedMenuName | Description | Type | Additional information |
---|---|---|---|
TranslatedMenu | Dictionary of string [key] and Collection of MenuText [value] |
None. |
|
Messages | Dictionary of string [key] and Collection of Dictionary of string [key] and string [value] [value] |
None. |
Response Formats
application/json, text/json
Sample:
{ "TranslatedMenu": { "sample string 1": [ { "Text": "sample string 1", "Intent": "sample string 2", "NextStepId": "sample string 3" }, { "Text": "sample string 1", "Intent": "sample string 2", "NextStepId": "sample string 3" } ], "sample string 2": [ { "Text": "sample string 1", "Intent": "sample string 2", "NextStepId": "sample string 3" }, { "Text": "sample string 1", "Intent": "sample string 2", "NextStepId": "sample string 3" } ] }, "Messages": { "sample string 1": [ { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } ], "sample string 2": [ { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } ] } }
text/html
Sample:
{"TranslatedMenu":{"sample string 1":[{"Text":"sample string 1","Intent":"sample string 2","NextStepId":"sample string 3"},{"Text":"sample string 1","Intent":"sample string 2","NextStepId":"sample string 3"}],"sample string 2":[{"Text":"sample string 1","Intent":"sample string 2","NextStepId":"sample string 3"},{"Text":"sample string 1","Intent":"sample string 2","NextStepId":"sample string 3"}]},"Messages":{"sample string 1":[{"sample string 1":"sample string 2","sample string 3":"sample string 4"},{"sample string 1":"sample string 2","sample string 3":"sample string 4"}],"sample string 2":[{"sample string 1":"sample string 2","sample string 3":"sample string 4"},{"sample string 1":"sample string 2","sample string 3":"sample string 4"}]}}
application/xml, text/xml
Sample:
<PretranslatedMenu xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SCMS.Carey.Services.Interfaces.PreTranslatedText.Entities"> <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringArrayOfArrayOfKeyValueOfstringstringty7Ep6D1> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value> <d2p1:ArrayOfKeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:KeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>sample string 4</d2p1:Value> </d2p1:KeyValueOfstringstring> </d2p1:ArrayOfKeyValueOfstringstring> <d2p1:ArrayOfKeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:KeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>sample string 4</d2p1:Value> </d2p1:KeyValueOfstringstring> </d2p1:ArrayOfKeyValueOfstringstring> </d2p1:Value> </d2p1:KeyValueOfstringArrayOfArrayOfKeyValueOfstringstringty7Ep6D1> <d2p1:KeyValueOfstringArrayOfArrayOfKeyValueOfstringstringty7Ep6D1> <d2p1:Key>sample string 2</d2p1:Key> <d2p1:Value> <d2p1:ArrayOfKeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:KeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>sample string 4</d2p1:Value> </d2p1:KeyValueOfstringstring> </d2p1:ArrayOfKeyValueOfstringstring> <d2p1:ArrayOfKeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:KeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>sample string 4</d2p1:Value> </d2p1:KeyValueOfstringstring> </d2p1:ArrayOfKeyValueOfstringstring> </d2p1:Value> </d2p1:KeyValueOfstringArrayOfArrayOfKeyValueOfstringstringty7Ep6D1> </Messages> <TranslatedMenu xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringArrayOfMenuText4oh8UYyW> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value> <MenuText> <Intent>sample string 2</Intent> <NextStepId>sample string 3</NextStepId> <Text>sample string 1</Text> </MenuText> <MenuText> <Intent>sample string 2</Intent> <NextStepId>sample string 3</NextStepId> <Text>sample string 1</Text> </MenuText> </d2p1:Value> </d2p1:KeyValueOfstringArrayOfMenuText4oh8UYyW> <d2p1:KeyValueOfstringArrayOfMenuText4oh8UYyW> <d2p1:Key>sample string 2</d2p1:Key> <d2p1:Value> <MenuText> <Intent>sample string 2</Intent> <NextStepId>sample string 3</NextStepId> <Text>sample string 1</Text> </MenuText> <MenuText> <Intent>sample string 2</Intent> <NextStepId>sample string 3</NextStepId> <Text>sample string 1</Text> </MenuText> </d2p1:Value> </d2p1:KeyValueOfstringArrayOfMenuText4oh8UYyW> </TranslatedMenu> </PretranslatedMenu>