GET games/{id}?type={type}
Return a specific game data object by id and game type
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | game id |
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 }
application/xml, text/xml
Sample:
<GameDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO"> <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>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="type" RegularGame --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="start" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="end" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="playoff.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="playoff.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="division.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="division.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="league.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="league.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sport.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sport.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="network.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="network.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="home.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="home.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="away.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="away.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="surface.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="surface.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="facility.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="facility.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="status" ToBePlayed --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="home_forfeited" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="away_forfeited" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="home_defaulted" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="away_defaulted" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="home_points" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="away_points" sample string 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="home_score" sample string 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="away_score" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="winner" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="has_checked_in_players" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="is_in_club" True --MultipartDataMediaFormatterBoundary1q2w3e--