| GET,POST | /GroupedRaceCard | Get a race card (thoroughbred,harness and greyhound races) for a given day-offset | Get a race card for a given day-offset. For example DaysToRace => 0 means today's racecard. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DaysToRace | body | int | No | Days To Race |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Thoroughbred | form | List<List<RaceCardItem>> | No | |
| Greyhounds | form | List<List<RaceCardItem>> | No | |
| Trots | form | List<List<RaceCardItem>> | No | |
| MultipleShortcutSummary | form | List<MarketShortcut> | No | |
| FutureDays | form | List<int> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MarketType | form | string | No | |
| DividendType | form | string | No | |
| EventMultipleId | form | int | No | |
| IsSelected | form | bool | No | |
| DisplayText | form | string | No | |
| EventTypeId | form | int | No | |
| LegNumber | form | int | No |
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 /GroupedRaceCard HTTP/1.1
Host: ios-api.betright.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
DaysToRace: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Thoroughbred:
[
[
{
EventTypeId: 0,
MasterEventId: 0,
EventId: 0,
VenueId: 0,
Venue: String,
CountryCode: String,
RaceNumber: 0,
AdvertisedStartTime: 0001-01-01,
ResultStatusId: 0,
SecondsToJump: -2147483648,
HasFixedMarkets: False,
IsOpenForBetting: False,
Results: String,
MasterCategoryName: String,
EventName: {}
}
]
],
Greyhounds:
[
[
{
EventTypeId: 0,
MasterEventId: 0,
EventId: 0,
VenueId: 0,
Venue: String,
CountryCode: String,
RaceNumber: 0,
AdvertisedStartTime: 0001-01-01,
ResultStatusId: 0,
SecondsToJump: -2147483648,
HasFixedMarkets: False,
IsOpenForBetting: False,
Results: String,
MasterCategoryName: String,
EventName: {}
}
]
],
Trots:
[
[
{
EventTypeId: 0,
MasterEventId: 0,
EventId: 0,
VenueId: 0,
Venue: String,
CountryCode: String,
RaceNumber: 0,
AdvertisedStartTime: 0001-01-01,
ResultStatusId: 0,
SecondsToJump: -2147483648,
HasFixedMarkets: False,
IsOpenForBetting: False,
Results: String,
MasterCategoryName: String,
EventName: {}
}
]
],
MultipleShortcutSummary:
[
{
MarketType: String,
DividendType: String,
EventMultipleId: 0,
IsSelected: False,
DisplayText: String,
EventTypeId: 0,
LegNumber: 0
}
],
FutureDays:
[
0
]
}