GET api/v1/player/{teamId}
DON'T RETURN PLAYERS FROM FOTBALLDATA Get Players in a team. doesn't return players on all teams
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| teamId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
EnkeltLagModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TeamId | integer |
None. |
|
| TeamName | string |
None. |
|
| ClubId | integer |
None. |
|
| Player | Collection of Players |
None. |
Response Formats
application/json, text/json
Sample:
{
"teamId": 1,
"teamName": "sample string 2",
"clubId": 3,
"player": [
{
"teamId": 1,
"teamName": "sample string 2",
"clubId": 3,
"players": [
{},
{}
]
},
{
"teamId": 1,
"teamName": "sample string 2",
"clubId": 3,
"players": [
{},
{}
]
}
]
}
application/xml, text/xml
Sample:
<EnkeltLagModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/oiback.Models">
<ClubId>3</ClubId>
<Player xmlns:d2p1="http://schemas.datacontract.org/2004/07/oiback.Classes">
<d2p1:Players>
<d2p1:ClubId>3</d2p1:ClubId>
<d2p1:Players xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:anyType />
<d4p1:anyType />
</d2p1:Players>
<d2p1:TeamId>1</d2p1:TeamId>
<d2p1:TeamName>sample string 2</d2p1:TeamName>
</d2p1:Players>
<d2p1:Players>
<d2p1:ClubId>3</d2p1:ClubId>
<d2p1:Players xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:anyType />
<d4p1:anyType />
</d2p1:Players>
<d2p1:TeamId>1</d2p1:TeamId>
<d2p1:TeamName>sample string 2</d2p1:TeamName>
</d2p1:Players>
</Player>
<TeamId>1</TeamId>
<TeamName>sample string 2</TeamName>
</EnkeltLagModel>