GET api/v{version}/player/findbykey/{key}

Lookup a player by its key. A key is a uniq identifier that will not change

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

integer

Required

version

string

None.

Body Parameters

None.

Response Information

Resource Description

PlayerViewModel
NameDescriptionTypeAdditional information
PlayerId

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.

MemberId

Dart connect member id.

string

None.

FullName

The name of the player.

string

None.

FirstName

string

None.

LastName

The Lastname is the surname with a unique identification

string

None.

SurName

string

None.

Nationality

The nationality of the player.

string

None.

Email

string

None.

DateOfBirth

date

None.

Age

integer

None.

Gender

string

None.

CountryCode

The nationality of the player represented by the country code. For example NL for the Netherlands.

string

None.

Attachment

A photo of the player.

string

None.

AttachmentContentType

string

None.

AttachmentPhotographer

string

None.

AttachmentDescription

string

None.

AttachmentThrow

string

None.

AttachmentThrowContentType

string

None.

AttachmentThrowPhotographer

string

None.

AttachmentThrowDescription

string

None.

AttachmentPassport

string

None.

AttachmentPassportContentType

string

None.

AttachmentPassportPhotographer

string

None.

AttachmentPassportDescription

string

None.

AttachmentWDF

string

None.

AttachmentWDFContentType

string

None.

AttachmentWDFPhotographer

string

None.

AttachmentWDFDescription

string

None.

Url

string

None.

Response Formats

application/json, text/json

Sample:
{
  "PlayerId": 1,
  "Key": 2,
  "MemberId": "sample string 3",
  "FullName": "sample string 4",
  "FirstName": "sample string 5",
  "LastName": "sample string 6",
  "SurName": "sample string 7",
  "Nationality": "sample string 8",
  "Age": 0,
  "Gender": "sample string 10",
  "CountryCode": "sample string 11",
  "Url": "sample string 28"
}

application/xml, text/xml

Sample:
<PlayerViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Attachment>sample string 12</Attachment>
  <AttachmentContentType>sample string 13</AttachmentContentType>
  <AttachmentDescription>sample string 15</AttachmentDescription>
  <AttachmentPassport>sample string 20</AttachmentPassport>
  <AttachmentPassportContentType>sample string 21</AttachmentPassportContentType>
  <AttachmentPassportDescription>sample string 23</AttachmentPassportDescription>
  <AttachmentPassportPhotographer>sample string 22</AttachmentPassportPhotographer>
  <AttachmentPhotographer>sample string 14</AttachmentPhotographer>
  <AttachmentThrow>sample string 16</AttachmentThrow>
  <AttachmentThrowContentType>sample string 17</AttachmentThrowContentType>
  <AttachmentThrowDescription>sample string 19</AttachmentThrowDescription>
  <AttachmentThrowPhotographer>sample string 18</AttachmentThrowPhotographer>
  <AttachmentWDF>sample string 24</AttachmentWDF>
  <AttachmentWDFContentType>sample string 25</AttachmentWDFContentType>
  <AttachmentWDFDescription>sample string 27</AttachmentWDFDescription>
  <AttachmentWDFPhotographer>sample string 26</AttachmentWDFPhotographer>
  <CountryCode>sample string 11</CountryCode>
  <DateOfBirth>2023-09-29T14:55:10.8777679+02:00</DateOfBirth>
  <Email>sample string 9</Email>
  <FirstName>sample string 5</FirstName>
  <FullName>sample string 4</FullName>
  <Gender>sample string 10</Gender>
  <Key>2</Key>
  <LastName>sample string 6</LastName>
  <MemberId>sample string 3</MemberId>
  <Nationality>sample string 8</Nationality>
  <PlayerId>1</PlayerId>
  <SurName>sample string 7</SurName>
  <Url>sample string 28</Url>
</PlayerViewModel>