GET api/v{version}/player/props/{id}?includeImages={includeImages}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

includeImages

boolean

Default value is False

version

string

None.

Body Parameters

None.

Response Information

Resource Description

PlayerPropViewModel
NameDescriptionTypeAdditional 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.

email

string

None.

gender

GenderType

None.

birthday

The birthday of the player.

date

None.

photos

PlayerPhotoProps

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "Key": 2,
  "lastupdated": "2020-10-26T22:56:29.6413421+01:00",
  "name": {
    "first": "sample string 1",
    "middle": "sample string 2",
    "last": "sample string 3"
  },
  "nationality": "sample string 4",
  "email": "sample string 5",
  "gender": 0,
  "birthday": "2020-10-26T22:56:29.6413421+01: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"
    }
  }
}

application/xml, text/xml

Sample:
<PlayerPropViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Email>sample string 5</Email>
  <Gender>Male</Gender>
  <Key>2</Key>
  <Name>
    <FirstName>sample string 1</FirstName>
    <LastName>sample string 3</LastName>
    <MiddleName>sample string 2</MiddleName>
  </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>