DigiOffice Gateway Web Services

<back to all web services

AddStatistic

Add a statistic entity.

Requires Authentication
The following routes are available for this service:
POST/api/statistics
import java.math.*
import java.util.*
import net.servicestack.client.*


/**
* Add a statistic entity.
*/
@Api(Description="Add a statistic entity.")
open class AddStatistic
{
    /**
    * Computername
    */
    @ApiMember(Description="Computername", IsRequired=true)
    var Computer:String? = null

    /**
    * Program for the statistic entry
    */
    @ApiMember(Description="Program for the statistic entry", IsRequired=true)
    var ProgramName:ProgramName? = null

    /**
    * Version of the program
    */
    @ApiMember(Description="Version of the program")
    var ProgramVersion:String? = null

    /**
    * Action of statistic
    */
    @ApiMember(Description="Action of statistic", IsRequired=true)
    var Action:Action? = null

    /**
    * First parameter
    */
    @ApiMember(Description="First parameter", IsRequired=true)
    var Param1:String? = null

    /**
    * Second parameter
    */
    @ApiMember(Description="Second parameter")
    var Param2:String? = null
}

enum class ProgramName
{
    DO4Outlook,
    DO4Word,
    DO4Excel,
    DO4PowerPoint,
    Its,
    Other,
}

enum class Action
{
    Start,
    Command,
    Other,
}

Kotlin AddStatistic 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 /api/statistics HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Computer":"String","ProgramName":"DO4Outlook","ProgramVersion":"String","Action":"Start","Param1":"String","Param2":"String"}