import java.math.*
import java.util.*
import net.servicestack.client.*
open class GetTranslations
{
var TranslateKeys:ArrayList<String> = ArrayList<String>()
}
@DataContract
open class GetTranslationsResponse
{
@DataMember
var Translations:ArrayList<Translation> = ArrayList<Translation>()
@DataMember
var PreferredLanguage:String? = null
@DataMember
var PreferredLanguageShort:String? = null
}
@DataContract
open class Translation : ITranslation
{
@DataMember
var Key:String? = null
@DataMember
var NL:String? = null
@DataMember
var EN:String? = null
@DataMember
var DE:String? = null
@DataMember
var FR:String? = null
@DataMember
var C1:String? = null
@DataMember
var C2:String? = null
@DataMember
var C3:String? = null
@DataMember
var C4:String? = null
@DataMember
var C5:String? = null
@DataMember
var C6:String? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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 }