GET api/players/{playerID}
Gets a player from IBIS
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
playerID |
The unique identifier of the player to fetch |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A Player object
PlayerName | Description | Type | Additional information |
---|---|---|---|
PlayerID |
The unique identifier for the player |
integer |
None. |
Name |
The name of player |
string |
None. |
Age |
The player's age |
integer |
None. |
ShirtNo |
The player's shirt number |
integer |
None. |
Position |
The player's position in the line up |
string |
None. |
Captain |
If true, the player is the team's captain, otherwise false |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "PlayerID": 1, "Name": "sample string 2", "Age": 3, "ShirtNo": 4, "Position": "sample string 5", "Captain": true }
application/xml, text/xml
Sample:
<Player xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IbisApi.Models"> <Age>3</Age> <Captain>true</Captain> <Name>sample string 2</Name> <PlayerID>1</PlayerID> <Position>sample string 5</Position> <ShirtNo>4</ShirtNo> </Player>