| All Verbs | /feed/odds |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | No | |
| Rounds | form | List<Round> | 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 .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /feed/odds HTTP/1.1
Host: grh1.api.bettor.webhop.biz
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetOdds xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Greyhounds.WebApi.ServiceModel" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AvailableRounds xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Greyhounds.ReadModel">
<Id>String</Id>
<Rounds>
<AvailableRounds.Round>
<Id>String</Id>
<Odds>
<AvailableRounds.Odds>
<Id>0</Id>
<Val>0</Val>
</AvailableRounds.Odds>
</Odds>
</AvailableRounds.Round>
</Rounds>
</AvailableRounds>