API | Games

Contains functionality to access game details, retrieves a paged list of games by a division, team, or date, and updating game details.

Game Details

Retrieves a game details.

Endpoint

GET http://football.exposureevents.com/api/v1/games

Parameters

Name Type Default Required Description
id integer The game id.

Response


{
  "Game": {
    "Id": 64,
    "Type": 1,
    "Date": "8/18/2017",
    "Time": "6:00 PM",
    "Division": {
      "Id": 120,
      "Name": "17",
      "Event": {
        "Id": 30,
        "Name": "Exposure Football Events"
      }
    },
    "VenueCourt": {
      "Id": 0,
      "Court": {
        "Name": "Main",
        "Abbr": "MN"
      },
      "Venue": {
        "Id": 68,
        "Name": "Exposure High School",
        "Abbr": "EHS",
        "Address": {
          "Location": "Exposure High School",
          "StreetAddress": "3934 E Battala Avenue",
          "ExtendedAddress": "Suite 144",
          "City": "Gilbert",
          "StateRegion": "Arizona",
          "PostalCode": "85297",
          "Latitude": 36.1849073,
          "Longitude": -115.1230314
        }
      }
    },
    "AwayTeam": {
      "Name": "Away Team",
      "Pool": "A",
      "PoolNumber": 1,
      "Score": 57,
      "Forfeited": false,
      "TeamId": 1487,
      "BracketName": "Gold",
      "BracketId": 100,
      "DivisionSeed": 4,
      "Seed": 2,
      "DivisionId": 100,
      "DivisionName": "16"
    },
    "HomeTeam": {
      "Name": "Home Team",
      "Pool": "A",
      "PoolNumber": 2,
      "Score": 58,
      "Forfeited": false,
      "TeamId": 1488,
      "PoolSeed": 2,
      "Exhibition": true
    },
    "BracketName": "Championship"
  }
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Game>
    <AwayTeam>
      <BracketId>100</BracketId>
      <BracketName>Gold</BracketName>
      <DivisionId>100</DivisionId>
      <DivisionName>16</DivisionName>
      <DivisionSeed>4</DivisionSeed>
      <Forfeited>false</Forfeited>
      <Name>Away Team</Name>
      <Pool>A</Pool>
      <PoolNumber>1</PoolNumber>
      <Score>57</Score>
      <Seed>2</Seed>
      <TeamId>1487</TeamId>
    </AwayTeam>
    <BracketName>Championship</BracketName>
    <Date>8/18/2017</Date>
    <Division>
      <Event>
        <Id>30</Id>
        <Name>Exposure Football Events</Name>
      </Event>
      <Id>120</Id>
      <Name>17</Name>
    </Division>
    <HomeTeam>
      <Exhibition>true</Exhibition>
      <Forfeited>false</Forfeited>
      <Name>Home Team</Name>
      <Pool>A</Pool>
      <PoolNumber>2</PoolNumber>
      <PoolSeed>2</PoolSeed>
      <Score>58</Score>
      <TeamId>1488</TeamId>
    </HomeTeam>
    <Id>64</Id>
    <Time>6:00 PM</Time>
    <Type>1</Type>
    <VenueCourt>
      <Court>
        <Abbr>MN</Abbr>
        <Name>Main</Name>
      </Court>
      <Id>0</Id>
      <Venue>
        <Abbr>EHS</Abbr>
        <Address>
          <City>Gilbert</City>
          <ExtendedAddress>Suite 144</ExtendedAddress>
          <Latitude>36.1849073</Latitude>
          <Location>Exposure High School</Location>
          <Longitude>-115.1230314</Longitude>
          <PostalCode>85297</PostalCode>
          <StateRegion>Arizona</StateRegion>
          <StreetAddress>3934 E Battala Avenue</StreetAddress>
        </Address>
        <Id>68</Id>
        <Name>Exposure High School</Name>
      </Venue>
    </VenueCourt>
  </Game>
</Response>

Games

Retrieves a paged list of games.

Endpoint

GET http://football.exposureevents.com/api/v1/games

Parameters

Name Type Default Required Description
page integer 1
pagesize integer 50
eventid integer The event id.
divisionid integer The division id.
teamid integer The team id.
date date The date of the games. The value must be in the format m/d/yyyy.

Response


{
  "Games": {
    "Results": [
      {
        "Id": 64,
        "Type": 1,
        "Date": "8/18/2017",
        "Time": "6:00 PM",
        "Division": {
          "Id": 120,
          "Name": "17",
          "Event": {
            "Id": 30,
            "Name": "Exposure Football Events"
          }
        },
        "VenueCourt": {
          "Id": 0,
          "Court": {
            "Name": "Main",
            "Abbr": "MN"
          },
          "Venue": {
            "Id": 68,
            "Name": "Exposure High School",
            "Abbr": "EHS",
            "Address": {
              "Location": "Exposure High School",
              "StreetAddress": "3934 E Battala Avenue",
              "ExtendedAddress": "Suite 144",
              "City": "Gilbert",
              "StateRegion": "Arizona",
              "PostalCode": "85297",
              "Latitude": 36.1849073,
              "Longitude": -115.1230314
            }
          }
        },
        "AwayTeam": {
          "Name": "Away Team",
          "Pool": "A",
          "PoolNumber": 1,
          "Score": 57,
          "Forfeited": false,
          "TeamId": 1487,
          "BracketName": "Gold",
          "BracketId": 100,
          "DivisionSeed": 4,
          "Seed": 2,
          "DivisionId": 100,
          "DivisionName": "16"
        },
        "HomeTeam": {
          "Name": "Home Team",
          "Pool": "A",
          "PoolNumber": 2,
          "Score": 58,
          "Forfeited": false,
          "TeamId": 1488,
          "PoolSeed": 2,
          "Exhibition": true
        },
        "BracketName": "Championship"
      }
    ],
    "Page": 1,
    "PageSize": 50,
    "Total": 1
  }
}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Games>
    <Page>1</Page>
    <PageSize>50</PageSize>
    <Results>
      <Game>
        <AwayTeam>
          <BracketId>100</BracketId>
          <BracketName>Gold</BracketName>
          <DivisionId>100</DivisionId>
          <DivisionName>16</DivisionName>
          <DivisionSeed>4</DivisionSeed>
          <Forfeited>false</Forfeited>
          <Name>Away Team</Name>
          <Pool>A</Pool>
          <PoolNumber>1</PoolNumber>
          <Score>57</Score>
          <Seed>2</Seed>
          <TeamId>1487</TeamId>
        </AwayTeam>
        <BracketName>Championship</BracketName>
        <Date>8/18/2017</Date>
        <Division>
          <Event>
            <Id>30</Id>
            <Name>Exposure Football Events</Name>
          </Event>
          <Id>120</Id>
          <Name>17</Name>
        </Division>
        <HomeTeam>
          <Exhibition>true</Exhibition>
          <Forfeited>false</Forfeited>
          <Name>Home Team</Name>
          <Pool>A</Pool>
          <PoolNumber>2</PoolNumber>
          <PoolSeed>2</PoolSeed>
          <Score>58</Score>
          <TeamId>1488</TeamId>
        </HomeTeam>
        <Id>64</Id>
        <Time>6:00 PM</Time>
        <Type>1</Type>
        <VenueCourt>
          <Court>
            <Abbr>MN</Abbr>
            <Name>Main</Name>
          </Court>
          <Id>0</Id>
          <Venue>
            <Abbr>EHS</Abbr>
            <Address>
              <City>Gilbert</City>
              <ExtendedAddress>Suite 144</ExtendedAddress>
              <Latitude>36.1849073</Latitude>
              <Location>Exposure High School</Location>
              <Longitude>-115.1230314</Longitude>
              <PostalCode>85297</PostalCode>
              <StateRegion>Arizona</StateRegion>
              <StreetAddress>3934 E Battala Avenue</StreetAddress>
            </Address>
            <Id>68</Id>
            <Name>Exposure High School</Name>
          </Venue>
        </VenueCourt>
      </Game>
    </Results>
    <Total>1</Total>
    <Totals i:nil="true" />
  </Games>
</Response>

Update Game

Updates an existing game.

Endpoint

PUT http://football.exposureevents.com/api/v1/games

Parameters

Name Type Default Required Description
id integer The game id.
awayteamscore integer The score of the away team.
hometeamscore integer The score of the home team.
awayteamforfeited boolean The away team forfeited.
hometeamforfeited boolean The home team forfeited.

Request


{
  "Id": 64,
  "AwayTeamScore": "55",
  "HomeTeamScore": "56",
  "AwayTeamForfeited": false,
  "HomeTeamForfeited": false
}


<Request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <AwayTeamForfeited>false</AwayTeamForfeited>
  <AwayTeamScore>55</AwayTeamScore>
  <HomeTeamForfeited>false</HomeTeamForfeited>
  <HomeTeamScore>56</HomeTeamScore>
  <Id>64</Id>
</Request>

Response


{}


<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />

YOUTH FOOTBALL EVENT, TOURNAMENT AND LEAGUE DIRECTORY Market your event by submitting it to our directory. Submit Event