DigiOffice Gateway Web Services

<back to all web services

GetTranslations

GetTranslations Parameters:
NameParameterData TypeRequiredDescription
TranslateKeysqueryList<string>No
GetTranslationsResponse Parameters:
NameParameterData TypeRequiredDescription
TranslationsformList<Translation>No
PreferredLanguageformstringNo
PreferredLanguageShortformstringNo
Translation Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
NLformstringNo
ENformstringNo
DEformstringNo
FRformstringNo
C1formstringNo
C2formstringNo
C3formstringNo
C4formstringNo
C5formstringNo
C6formstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/GetTranslations HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	TranslateKeys: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Translations: 
	[
		{
			Key: String,
			NL: String,
			EN: String,
			DE: String,
			FR: String,
			C1: String,
			C2: String,
			C3: String,
			C4: String,
			C5: String,
			C6: String
		}
	],
	PreferredLanguage: String,
	PreferredLanguageShort: String
}