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: doapigw.baasbv.nl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	__type: "IDB.API.DTO.Globalization.GetTranslations, IDB.API.DTO",
	TranslateKeys: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	__type: "IDB.API.DTO.Globalization.GetTranslationsResponse, IDB.API.DTO",
	Translations: 
	[
		{
			__type: "IDB.API.DTO.Globalization.Translation, IDB.API.DTO",
			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
}