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.

FullName

The name of the player.

string

None.

FirstName

string

None.

MiddleName

string

None.

LastName

string

None.

Nationality

The nationality of the player.

string

None.

NationalityCode

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.

Response Formats

application/json, text/json

Sample:
{
  "PlayerId": 1,
  "Key": 2,
  "FullName": "sample string 3",
  "FirstName": "sample string 4",
  "MiddleName": "sample string 5",
  "LastName": "sample string 6",
  "Nationality": "sample string 7",
  "NationalityCode": "sample string 8",
  "Attachment": "sample string 9",
  "AttachmentContentType": "sample string 10",
  "AttachmentPhotographer": "sample string 11",
  "AttachmentDescription": "sample string 12",
  "AttachmentThrow": "sample string 13",
  "AttachmentThrowContentType": "sample string 14",
  "AttachmentThrowPhotographer": "sample string 15",
  "AttachmentThrowDescription": "sample string 16",
  "AttachmentPassport": "sample string 17",
  "AttachmentPassportContentType": "sample string 18",
  "AttachmentPassportPhotographer": "sample string 19",
  "AttachmentPassportDescription": "sample string 20"
}

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 9</Attachment>
  <AttachmentContentType>sample string 10</AttachmentContentType>
  <AttachmentDescription>sample string 12</AttachmentDescription>
  <AttachmentPassport>sample string 17</AttachmentPassport>
  <AttachmentPassportContentType>sample string 18</AttachmentPassportContentType>
  <AttachmentPassportDescription>sample string 20</AttachmentPassportDescription>
  <AttachmentPassportPhotographer>sample string 19</AttachmentPassportPhotographer>
  <AttachmentPhotographer>sample string 11</AttachmentPhotographer>
  <AttachmentThrow>sample string 13</AttachmentThrow>
  <AttachmentThrowContentType>sample string 14</AttachmentThrowContentType>
  <AttachmentThrowDescription>sample string 16</AttachmentThrowDescription>
  <AttachmentThrowPhotographer>sample string 15</AttachmentThrowPhotographer>
  <FirstName>sample string 4</FirstName>
  <FullName>sample string 3</FullName>
  <Key>2</Key>
  <LastName>sample string 6</LastName>
  <MiddleName>sample string 5</MiddleName>
  <Nationality>sample string 7</Nationality>
  <NationalityCode>sample string 8</NationalityCode>
  <PlayerId>1</PlayerId>
</PlayerViewModel>