import Foundation
import ServiceStack
public class GetApplicationInfo : Codable
{
public var includeModules:Bool?
public var includeOfficeAddins:Bool?
required public init(){}
}
public class ApplicationInfo : Codable
{
public var applicationName:String?
public var version:String?
public var versionGateway:String?
public var environment:String?
public var machineName:String?
public var customerCode:String?
public var customerBrandCode:String?
public var databaseName:String?
public var databaseVersion:String?
public var databaseServer:String?
public var userName:String?
public var userLoginName:String?
public var modulesInformation:[ModuleInformation] = []
public var websiteIntranetUrl:String?
public var idbOpties:Bool?
public var onPremisesUrl:String?
public var onLineUrl:String?
public var isApiGateway:Bool?
public var hasCRMModuleActive:Bool?
public var hasExtranetModuleActive:Bool?
public var hasHuisstijlMOModuleActive:Bool?
public var hasDigitaalOndertekenenModuleActive:Bool?
public var hasDOVoorWordHuisstijl:Bool?
public var hasDOVoorWordRegistreren:Bool?
public var hasDOVoorExcelHuisstijl:Bool?
public var hasDOVoorExcelRegistreren:Bool?
public var hasDOVoorPowerPointHuisstijl:Bool?
public var hasDOVoorPowerPointRegistreren:Bool?
public var hasDOVoorOutlookHuisstijl:Bool?
public var hasDOVoorOutlookRegistreren:Bool?
required public init(){}
}
public class ModuleInformation : Codable
{
public var moduleName:String?
public var moduleVersion:String?
public var moduleDate:Date?
required public init(){}
}
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/GetApplicationInfo HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
IncludeModules: False,
IncludeOfficeAddins: False
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { ApplicationName: String, Version: String, VersionGateway: String, Environment: String, MachineName: String, CustomerCode: String, CustomerBrandCode: String, DatabaseName: String, DatabaseVersion: String, DatabaseServer: String, UserName: String, UserLoginName: String, ModulesInformation: [ { ModuleName: String, ModuleVersion: String, ModuleDate: 0001-01-01 } ], WebsiteIntranetUrl: String, IDBOpties: False, OnPremisesUrl: String, OnLineUrl: String, IsApiGateway: False, HasCRMModuleActive: False, HasExtranetModuleActive: False, HasHuisstijlMOModuleActive: False, HasDigitaalOndertekenenModuleActive: False, HasDOVoorWordHuisstijl: False, HasDOVoorWordRegistreren: False, HasDOVoorExcelHuisstijl: False, HasDOVoorExcelRegistreren: False, HasDOVoorPowerPointHuisstijl: False, HasDOVoorPowerPointRegistreren: False, HasDOVoorOutlookHuisstijl: False, HasDOVoorOutlookRegistreren: False }