Betting.WebApi

<back to all web services

GetFeed

The following routes are available for this service:
All Verbs/feed
Feed Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
RoundformRoundNo
LastJackpotInfoformJackpotInfoNo
Round Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CreatedAtformDateTimeNo
UpdatedAtformDateTimeNo
StatusformRoundStatusNo
ConfigurationformRoundConfigurationNo
OddsformDictionary<int, Outcome>No
JackpotInfoformJackpotInfoNo
SequenceformstringNo
ProgressformRoundProgressNo
IsLockedformboolNo
IsCalculatedformboolNo
RoundStatus Enum:
NameValue
Pending0
InProgress1
Ended2
RoundConfiguration Parameters:
NameParameterData TypeRequiredDescription
CountdownDurationInSecondsformintNo
RaceDurationInSecondsformintNo
ResultsDurationInSecondsformintNo
RTPStrategyformRTPStrategiesNo
RTPStrategies Enum:
NameValue
RNG0
Default1
Outcome Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
OddsformfloatNo
StatusformOutcomeStatusNo
OutcomeStatus Enum:
NameValue
Unknown0
Lost1
Won2
Void3
JackpotInfo Parameters:
NameParameterData TypeRequiredDescription
IsGivenformboolNo
IdformstringNo
SlipIdformstringNo
JPIdformstringNo
AmountformdecimalNo
LocationIdformstringNo
LocationNameformstringNo
AddressLineformstringNo
AmountAccumulatedformdecimalNo
RoundProgress Parameters:
NameParameterData TypeRequiredDescription
StageformStagesNo
StepformintNo
StepsformintNo
UTCTimestampformDateTimeNo
Stages Enum:
NameValue
None0
Countdown1
Processing2
Race3
Results4

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

{}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":"String","round":{"id":"String","createdAt":"0001-01-01T00:00:00.0000000Z","updatedAt":"0001-01-01T00:00:00.0000000Z","status":0,"configuration":{"countdownDurationInSeconds":0,"raceDurationInSeconds":0,"resultsDurationInSeconds":0,"rtpStrategy":0},"odds":{"0":{"id":0,"odds":0,"status":0}},"jackpotInfo":{"isGiven":false,"id":"String","slipId":"String","jpId":"String","amount":0,"locationId":"String","locationName":"String","addressLine":"String","amountAccumulated":0},"sequence":"String","progress":{"stage":0,"step":0,"steps":0,"utcTimestamp":"0001-01-01T00:00:00.0000000Z"},"isLocked":false,"isCalculated":false},"lastJackpotInfo":{"isGiven":false,"id":"String","slipId":"String","jpId":"String","amount":0,"locationId":"String","locationName":"String","addressLine":"String","amountAccumulated":0}}