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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	round: 
	{
		id: String,
		createdAt: 0001-01-01,
		updatedAt: 0001-01-01,
		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-01
		},
		isLocked: False,
		isCalculated: False
	},
	lastJackpotInfo: 
	{
		isGiven: False,
		id: String,
		slipId: String,
		jpId: String,
		amount: 0,
		locationId: String,
		locationName: String,
		addressLine: String,
		amountAccumulated: 0
	}
}