Greyhounds.WebApi

<back to all web services

GetOdds

The following routes are available for this service:
All Verbs/feed/odds
AvailableRounds Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
RoundsformList<Round>No
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 .xml suffix or ?format=xml

HTTP + 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>