All Verbs | /feed |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
Round | form | Round | No | |
LastJackpotInfo | form | JackpotInfo | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
CreatedAt | form | DateTime | No | |
UpdatedAt | form | DateTime | No | |
Status | form | RoundStatus | No | |
Configuration | form | RoundConfiguration | No | |
Odds | form | Dictionary<int, Outcome> | No | |
JackpotInfo | form | JackpotInfo | No | |
Sequence | form | string | No | |
Progress | form | RoundProgress | No | |
IsLocked | form | bool | No | |
IsCalculated | form | bool | No |
Name | Value | |
---|---|---|
Pending | 0 | |
InProgress | 1 | |
Ended | 2 |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CountdownDurationInSeconds | form | int | No | |
RaceDurationInSeconds | form | int | No | |
ResultsDurationInSeconds | form | int | No | |
RTPStrategy | form | RTPStrategies | No |
Name | Value | |
---|---|---|
RNG | 0 | |
Default | 1 |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
Odds | form | float | No | |
Status | form | OutcomeStatus | No |
Name | Value | |
---|---|---|
Unknown | 0 | |
Lost | 1 | |
Won | 2 | |
Void | 3 |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
IsGiven | form | bool | No | |
Id | form | string | No | |
SlipId | form | string | No | |
JPId | form | string | No | |
Amount | form | decimal | No | |
LocationId | form | string | No | |
LocationName | form | string | No | |
AddressLine | form | string | No | |
AmountAccumulated | form | decimal | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Stage | form | Stages | No | |
Step | form | int | No | |
Steps | form | int | No | |
UTCTimestamp | form | DateTime | No |
Name | Value | |
---|---|---|
None | 0 | |
Countdown | 1 | |
Processing | 2 | |
Race | 3 | |
Results | 4 |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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 } }