Greyhounds.WebApi

<back to all web services

GetRace

The following routes are available for this service:
All Verbs/rounds/race
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class GetRace
{
    open var id:String? = null
}

open class Race
{
    open var id:String? = null
    open var sequence:String? = null
    open var inputAccumulation:ArrayList<Pool>? = null
    open var outputAccumulation:ArrayList<Pool>? = null
    open var outcome:RoundOutcome? = null
    open var jackpotInfo:JackpotInfo? = null
}

open class Pool
{
    open var id:Int? = null
    open var name:String? = null
    open var coefficient:BigDecimal? = null
    open var rtp:BigDecimal? = null
    open var threshold:BigDecimal? = null
    open var balance:BigDecimal? = null
}

open class RoundOutcome
{
    open var raceOutcomeRecaps:ArrayList<RaceOutcomeRecap>? = null
    open var stake:BigDecimal? = null
    open var winnings:BigDecimal? = null
    open var balance:BigDecimal? = null
    open var returnToPlayer:BigDecimal? = null
}

open class RaceOutcomeRecap
{
    open var id:Int? = null
    open var coef:Float? = null
    open var winCount:Int? = null
    open var win:BigDecimal? = null
    open var isWin:Boolean? = null
    open var results:String? = null
}

open class JackpotInfo
{
    open var isGiven:Boolean? = null
    open var id:String? = null
    open var slipId:String? = null
    open var jpId:String? = null
    open var amount:BigDecimal? = null
    open var locationId:String? = null
    open var locationName:String? = null
    open var addressLine:String? = null
    open var amountAccumulated:BigDecimal? = null
}

Kotlin GetRace DTOs

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

HTTP + OTHER

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

POST /rounds/race HTTP/1.1 
Host: grh1.api.bettor.webhop.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":"String","sequence":"String","inputAccumulation":[{"id":0,"name":"String","amount":0}],"outputAccumulation":[{"id":0,"name":"String","amount":0}],"outcome":{"raceOutcomeRecaps":[{"id":0,"coef":0,"winCount":0,"win":0,"isWin":false,"results":"String"}],"stake":0,"winnings":0,"balance":0,"returnToPlayer":0},"jackpotInfo":{"isGiven":false,"id":"String","slipId":"String","jpId":"String","amount":0,"locationId":"String","locationName":"String","addressLine":"String","amountAccumulated":0}}