DigiOffice Gateway Web Services

<back to all web services

GetTranslations

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
}

Kotlin GetTranslations DTOs

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

HTTP + CSV

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

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

{"TranslateKeys":["String"]}
HTTP/1.1 200 OK
Content-Type: text/csv
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"}