Betting.WebApi

<back to all web services

GetFeed

The following routes are available for this service:
All Verbs/feed
Feed Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
RoundformRoundNo
LastJackpotInfoformJackpotInfoNo
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 HTTP/1.1 
Host: grhapi.mozzart.ath.cx 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetFeed 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

<Feed xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Greyhounds.ReadModel">
  <Id>String</Id>
  <LastJackpotInfo>
    <AddressLine>String</AddressLine>
    <Amount>0</Amount>
    <AmountAccumulated>0</AmountAccumulated>
    <Id>String</Id>
    <IsGiven>false</IsGiven>
    <JPId>String</JPId>
    <LocationId>String</LocationId>
    <LocationName>String</LocationName>
    <SlipId>String</SlipId>
  </LastJackpotInfo>
  <Round>
    <Configuration>
      <CountdownDurationInSeconds>0</CountdownDurationInSeconds>
      <RTPStrategy>RNG</RTPStrategy>
      <RaceDurationInSeconds>0</RaceDurationInSeconds>
      <ResultsDurationInSeconds>0</ResultsDurationInSeconds>
    </Configuration>
    <CreatedAt>0001-01-01T00:00:00</CreatedAt>
    <Id>String</Id>
    <IsCalculated>false</IsCalculated>
    <IsLocked>false</IsLocked>
    <JackpotInfo>
      <AddressLine>String</AddressLine>
      <Amount>0</Amount>
      <AmountAccumulated>0</AmountAccumulated>
      <Id>String</Id>
      <IsGiven>false</IsGiven>
      <JPId>String</JPId>
      <LocationId>String</LocationId>
      <LocationName>String</LocationName>
      <SlipId>String</SlipId>
    </JackpotInfo>
    <Odds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfintRound.OutcomeBB7LCH9U>
        <d3p1:Key>0</d3p1:Key>
        <d3p1:Value>
          <Id>0</Id>
          <Odds>0</Odds>
          <Status>Unknown</Status>
        </d3p1:Value>
      </d3p1:KeyValueOfintRound.OutcomeBB7LCH9U>
    </Odds>
    <Progress>
      <Stage>None</Stage>
      <Step>0</Step>
      <Steps>0</Steps>
      <UTCTimestamp>0001-01-01T00:00:00</UTCTimestamp>
    </Progress>
    <Sequence>String</Sequence>
    <Status>Pending</Status>
    <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
  </Round>
</Feed>