Betting.WebApi

<back to all web services

GetRace

The following routes are available for this service:
All Verbs/rounds/race
GetRace Parameters:
NameParameterData TypeRequiredDescription
IdquerystringNo
Race Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
SequenceformstringNo
InputAccumulationformList<Pool>No
OutputAccumulationformList<Pool>No
OutcomeformRoundOutcomeNo
JackpotInfoformJackpotInfoNo
RoundOutcome Parameters:
NameParameterData TypeRequiredDescription
RaceOutcomeRecapsformList<RaceOutcomeRecap>No
StakeformdecimalNo
WinningsformdecimalNo
BalanceformdecimalNo
ReturnToPlayerformdecimalNo
RaceOutcomeRecap Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CoefformfloatNo
WinCountformintNo
WinformdecimalNo
IsWinformboolNo
ResultsformstringNo
JackpotInfo Parameters:
NameParameterData TypeRequiredDescription
IsGivenformboolNo
IdformstringNo
SlipIdformstringNo
JPIdformstringNo
AmountformdecimalNo
LocationIdformstringNo
LocationNameformstringNo
AddressLineformstringNo
AmountAccumulatedformdecimalNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: grhapi.mozzart.ath.cx 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
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}}