| GET,POST | /GroupedFeedRaceCard | 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<FeedRaceCardItem>> | No | |
| Greyhounds | form | List<List<FeedRaceCardItem>> | No | |
| Trots | form | List<List<FeedRaceCardItem>> | No |
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /GroupedFeedRaceCard HTTP/1.1
Host: ios-api.betright.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"DaysToRace":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Thoroughbred":[[{"EventTypeId":0,"EventTypeDesc":"String","BTEventId":0,"BMEventId":0,"BTVenueId":0,"BMVenueId":0,"Venue":"String","CountryCode":"String","RaceNumber":0,"AdvertisedStartTime":"\/Date(-62135596800000)\/","ActualStartTime":"\/Date(-62135596800000)\/","ResultStatusId":0,"IsOpenForBetting":false,"EventName":{}}]],"Greyhounds":[[{"EventTypeId":0,"EventTypeDesc":"String","BTEventId":0,"BMEventId":0,"BTVenueId":0,"BMVenueId":0,"Venue":"String","CountryCode":"String","RaceNumber":0,"AdvertisedStartTime":"\/Date(-62135596800000)\/","ActualStartTime":"\/Date(-62135596800000)\/","ResultStatusId":0,"IsOpenForBetting":false,"EventName":{}}]],"Trots":[[{"EventTypeId":0,"EventTypeDesc":"String","BTEventId":0,"BMEventId":0,"BTVenueId":0,"BMVenueId":0,"Venue":"String","CountryCode":"String","RaceNumber":0,"AdvertisedStartTime":"\/Date(-62135596800000)\/","ActualStartTime":"\/Date(-62135596800000)\/","ResultStatusId":0,"IsOpenForBetting":false,"EventName":{}}]]}