GET api/v{version}/player/props?includeImages={includeImages}
Get some basic properties for all player in the system. This includes: A name, nationality, birthday, gender and optional an image.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
includeImages | boolean |
Default value is False |
|
version | string |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of PlayerPropViewModelName | Description | Type | Additional information |
---|---|---|---|
id |
Id of the player. This id is unique, but may be changes between version updates of the application. |
integer |
None. |
Key |
The unique key of the player. While the id of the player is also unique, this key will never change due to database reconfigurations. |
integer |
None. |
lastupdated | date |
None. |
|
name | PlayerNameProp |
None. |
|
nationality |
The nationality of the player represented by the country code. For example NL for the Netherlands. |
string |
None. |
string |
None. |
||
gender | GenderType |
None. |
|
birthday |
The birthday of the player. |
date |
None. |
photos | PlayerPhotoProps |
None. |
|
Identifier | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
[ { "id": 1, "Key": 2, "lastupdated": "2023-09-29T14:54:29.7281747+02:00", "name": { "first": "sample string 1", "last": "sample string 2" }, "nationality": "sample string 4", "email": "sample string 5", "gender": 0, "birthday": "2023-09-29T14:54:29.7281747+02:00", "photos": { "general": { "link": "sample string 1", "contenttype": "sample string 2", "photographer": "sample string 3", "description": "sample string 4" }, "throw": { "link": "sample string 1", "contenttype": "sample string 2", "photographer": "sample string 3", "description": "sample string 4" }, "mug": { "link": "sample string 1", "contenttype": "sample string 2", "photographer": "sample string 3", "description": "sample string 4" } }, "Identifier": "00a9717e-21d3-4c46-b65a-1c12a4f01ef0" }, { "id": 1, "Key": 2, "lastupdated": "2023-09-29T14:54:29.7281747+02:00", "name": { "first": "sample string 1", "last": "sample string 2" }, "nationality": "sample string 4", "email": "sample string 5", "gender": 0, "birthday": "2023-09-29T14:54:29.7281747+02:00", "photos": { "general": { "link": "sample string 1", "contenttype": "sample string 2", "photographer": "sample string 3", "description": "sample string 4" }, "throw": { "link": "sample string 1", "contenttype": "sample string 2", "photographer": "sample string 3", "description": "sample string 4" }, "mug": { "link": "sample string 1", "contenttype": "sample string 2", "photographer": "sample string 3", "description": "sample string 4" } }, "Identifier": "00a9717e-21d3-4c46-b65a-1c12a4f01ef0" } ]
application/xml, text/xml
Sample:
<ArrayOfPlayerPropViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models"> <PlayerPropViewModel> <Email>sample string 5</Email> <Gender>Male</Gender> <Key>2</Key> <Name> <FirstName>sample string 1</FirstName> <LastName>sample string 2</LastName> </Name> <NationalityCountryCode>sample string 4</NationalityCountryCode> <Photos> <General> <ContentType>sample string 2</ContentType> <Description>sample string 4</Description> <Link>sample string 1</Link> <Photographer>sample string 3</Photographer> </General> <Mug> <ContentType>sample string 2</ContentType> <Description>sample string 4</Description> <Link>sample string 1</Link> <Photographer>sample string 3</Photographer> </Mug> <Throw> <ContentType>sample string 2</ContentType> <Description>sample string 4</Description> <Link>sample string 1</Link> <Photographer>sample string 3</Photographer> </Throw> </Photos> <PlayerId>1</PlayerId> </PlayerPropViewModel> <PlayerPropViewModel> <Email>sample string 5</Email> <Gender>Male</Gender> <Key>2</Key> <Name> <FirstName>sample string 1</FirstName> <LastName>sample string 2</LastName> </Name> <NationalityCountryCode>sample string 4</NationalityCountryCode> <Photos> <General> <ContentType>sample string 2</ContentType> <Description>sample string 4</Description> <Link>sample string 1</Link> <Photographer>sample string 3</Photographer> </General> <Mug> <ContentType>sample string 2</ContentType> <Description>sample string 4</Description> <Link>sample string 1</Link> <Photographer>sample string 3</Photographer> </Mug> <Throw> <ContentType>sample string 2</ContentType> <Description>sample string 4</Description> <Link>sample string 1</Link> <Photographer>sample string 3</Photographer> </Throw> </Photos> <PlayerId>1</PlayerId> </PlayerPropViewModel> </ArrayOfPlayerPropViewModel>