GET api/teams/{teamID}
Queryable action. Gets a team from IBIS for the current season.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
teamID |
The unique identifier of the team to fetch |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A Team object
Collection of TeamName | Description | Type | Additional information |
---|---|---|---|
TeamID |
The unique identifier for the team |
integer |
None. |
Name |
The name of the team |
string |
None. |
Players |
A collection of the players in the team's current squad |
Collection of Player |
None. |
TeamPersons |
A collection of the team's team persons |
Collection of TeamPerson |
None. |
Response Formats
application/json, text/json
Sample:
[ { "TeamID": 1, "Name": "sample string 2", "Players": [ { "PlayerID": 1, "Name": "sample string 2", "Age": 3, "ShirtNo": 4, "Position": "sample string 5", "Captain": true }, { "PlayerID": 1, "Name": "sample string 2", "Age": 3, "ShirtNo": 4, "Position": "sample string 5", "Captain": true } ], "TeamPersons": [ { "TeamPersonID": 1, "Name": "sample string 2", "Role": "sample string 3" }, { "TeamPersonID": 1, "Name": "sample string 2", "Role": "sample string 3" } ] }, { "TeamID": 1, "Name": "sample string 2", "Players": [ { "PlayerID": 1, "Name": "sample string 2", "Age": 3, "ShirtNo": 4, "Position": "sample string 5", "Captain": true }, { "PlayerID": 1, "Name": "sample string 2", "Age": 3, "ShirtNo": 4, "Position": "sample string 5", "Captain": true } ], "TeamPersons": [ { "TeamPersonID": 1, "Name": "sample string 2", "Role": "sample string 3" }, { "TeamPersonID": 1, "Name": "sample string 2", "Role": "sample string 3" } ] } ]
application/xml, text/xml
Sample:
<ArrayOfTeam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IbisApi.Models"> <Team> <Name>sample string 2</Name> <Players> <Player> <Age>3</Age> <Captain>true</Captain> <Name>sample string 2</Name> <PlayerID>1</PlayerID> <Position>sample string 5</Position> <ShirtNo>4</ShirtNo> </Player> <Player> <Age>3</Age> <Captain>true</Captain> <Name>sample string 2</Name> <PlayerID>1</PlayerID> <Position>sample string 5</Position> <ShirtNo>4</ShirtNo> </Player> </Players> <TeamID>1</TeamID> <TeamPersons> <TeamPerson> <Name>sample string 2</Name> <Role>sample string 3</Role> <TeamPersonID>1</TeamPersonID> </TeamPerson> <TeamPerson> <Name>sample string 2</Name> <Role>sample string 3</Role> <TeamPersonID>1</TeamPersonID> </TeamPerson> </TeamPersons> </Team> <Team> <Name>sample string 2</Name> <Players> <Player> <Age>3</Age> <Captain>true</Captain> <Name>sample string 2</Name> <PlayerID>1</PlayerID> <Position>sample string 5</Position> <ShirtNo>4</ShirtNo> </Player> <Player> <Age>3</Age> <Captain>true</Captain> <Name>sample string 2</Name> <PlayerID>1</PlayerID> <Position>sample string 5</Position> <ShirtNo>4</ShirtNo> </Player> </Players> <TeamID>1</TeamID> <TeamPersons> <TeamPerson> <Name>sample string 2</Name> <Role>sample string 3</Role> <TeamPersonID>1</TeamPersonID> </TeamPerson> <TeamPerson> <Name>sample string 2</Name> <Role>sample string 3</Role> <TeamPersonID>1</TeamPersonID> </TeamPerson> </TeamPersons> </Team> </ArrayOfTeam>