GET leagues/{id}/games?sort={sort}&type={type}

Return sorted game collection by league id and game type

Request Information

Parameters

NameDescriptionAdditional information
id
league id

Define this parameter in the request URI.

sort
asc or desc

Define this parameter in the request URI.

type
game type

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "type": 0,
    "start": "sample string 2",
    "end": "sample string 3",
    "playoff": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "division": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "league": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "sport": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "network": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "home": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "away": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "surface": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "facility": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "status": 0,
    "home_forfeited": true,
    "away_forfeited": true,
    "home_defaulted": true,
    "away_defaulted": true,
    "home_points": "sample string 8",
    "away_points": "sample string 9",
    "home_score": "sample string 10",
    "away_score": "sample string 11",
    "winner": "sample string 12",
    "has_checked_in_players": true,
    "is_in_club": true
  },
  {
    "id": 1,
    "type": 0,
    "start": "sample string 2",
    "end": "sample string 3",
    "playoff": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "division": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "league": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "sport": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "network": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "home": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "away": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "surface": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "facility": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "status": 0,
    "home_forfeited": true,
    "away_forfeited": true,
    "home_defaulted": true,
    "away_defaulted": true,
    "home_points": "sample string 8",
    "away_points": "sample string 9",
    "home_score": "sample string 10",
    "away_score": "sample string 11",
    "winner": "sample string 12",
    "has_checked_in_players": true,
    "is_in_club": true
  },
  {
    "id": 1,
    "type": 0,
    "start": "sample string 2",
    "end": "sample string 3",
    "playoff": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "division": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "league": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "sport": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "network": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "home": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "away": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "surface": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "facility": {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    "status": 0,
    "home_forfeited": true,
    "away_forfeited": true,
    "home_defaulted": true,
    "away_defaulted": true,
    "home_points": "sample string 8",
    "away_points": "sample string 9",
    "home_score": "sample string 10",
    "away_score": "sample string 11",
    "winner": "sample string 12",
    "has_checked_in_players": true,
    "is_in_club": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfGameDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
  <GameDto>
    <away>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </away>
    <away_defaulted>true</away_defaulted>
    <away_forfeited>true</away_forfeited>
    <away_points>sample string 9</away_points>
    <away_score>sample string 11</away_score>
    <division>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </division>
    <end>sample string 3</end>
    <facility>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </facility>
    <has_checked_in_players>true</has_checked_in_players>
    <home>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </home>
    <home_defaulted>true</home_defaulted>
    <home_forfeited>true</home_forfeited>
    <home_points>sample string 8</home_points>
    <home_score>sample string 10</home_score>
    <id>1</id>
    <is_in_club>true</is_in_club>
    <league>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </league>
    <network>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </network>
    <playoff>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </playoff>
    <sport>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </sport>
    <start>sample string 2</start>
    <status>ToBePlayed</status>
    <surface>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </surface>
    <type>RegularGame</type>
    <winner>sample string 12</winner>
  </GameDto>
  <GameDto>
    <away>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </away>
    <away_defaulted>true</away_defaulted>
    <away_forfeited>true</away_forfeited>
    <away_points>sample string 9</away_points>
    <away_score>sample string 11</away_score>
    <division>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </division>
    <end>sample string 3</end>
    <facility>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </facility>
    <has_checked_in_players>true</has_checked_in_players>
    <home>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </home>
    <home_defaulted>true</home_defaulted>
    <home_forfeited>true</home_forfeited>
    <home_points>sample string 8</home_points>
    <home_score>sample string 10</home_score>
    <id>1</id>
    <is_in_club>true</is_in_club>
    <league>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </league>
    <network>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </network>
    <playoff>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </playoff>
    <sport>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </sport>
    <start>sample string 2</start>
    <status>ToBePlayed</status>
    <surface>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </surface>
    <type>RegularGame</type>
    <winner>sample string 12</winner>
  </GameDto>
  <GameDto>
    <away>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </away>
    <away_defaulted>true</away_defaulted>
    <away_forfeited>true</away_forfeited>
    <away_points>sample string 9</away_points>
    <away_score>sample string 11</away_score>
    <division>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </division>
    <end>sample string 3</end>
    <facility>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </facility>
    <has_checked_in_players>true</has_checked_in_players>
    <home>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </home>
    <home_defaulted>true</home_defaulted>
    <home_forfeited>true</home_forfeited>
    <home_points>sample string 8</home_points>
    <home_score>sample string 10</home_score>
    <id>1</id>
    <is_in_club>true</is_in_club>
    <league>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </league>
    <network>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </network>
    <playoff>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </playoff>
    <sport>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </sport>
    <start>sample string 2</start>
    <status>ToBePlayed</status>
    <surface>
      <id>sample string 1</id>
      <name>sample string 2</name>
    </surface>
    <type>RegularGame</type>
    <winner>sample string 12</winner>
  </GameDto>
</ArrayOfGameDto>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].id"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].type"

RegularGame
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].start"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].end"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].playoff.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].playoff.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].division.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].division.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].league.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].league.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].sport.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].sport.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].network.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].network.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].home.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].home.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].away.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].away.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].surface.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].surface.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].facility.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].facility.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].status"

ToBePlayed
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].home_forfeited"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].away_forfeited"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].home_defaulted"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].away_defaulted"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].home_points"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].away_points"

sample string 9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].home_score"

sample string 10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].away_score"

sample string 11
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].winner"

sample string 12
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].has_checked_in_players"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].is_in_club"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].id"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].type"

RegularGame
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].start"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].end"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].playoff.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].playoff.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].division.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].division.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].league.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].league.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].sport.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].sport.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].network.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].network.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].home.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].home.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].away.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].away.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].surface.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].surface.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].facility.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].facility.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].status"

ToBePlayed
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].home_forfeited"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].away_forfeited"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].home_defaulted"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].away_defaulted"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].home_points"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].away_points"

sample string 9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].home_score"

sample string 10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].away_score"

sample string 11
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].winner"

sample string 12
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].has_checked_in_players"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].is_in_club"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].id"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].type"

RegularGame
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].start"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].end"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].playoff.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].playoff.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].division.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].division.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].league.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].league.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].sport.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].sport.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].network.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].network.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].home.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].home.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].away.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].away.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].surface.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].surface.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].facility.id"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].facility.name"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].status"

ToBePlayed
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].home_forfeited"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].away_forfeited"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].home_defaulted"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].away_defaulted"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].home_points"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].away_points"

sample string 9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].home_score"

sample string 10
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].away_score"

sample string 11
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].winner"

sample string 12
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].has_checked_in_players"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[2].is_in_club"

True
--MultipartDataMediaFormatterBoundary1q2w3e--