GET api/v{version}/player/{id}/titles

Return all the titles of a player.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

version

string

None.

Body Parameters

None.

Response Information

Resource Description

PlayerTitlesViewModel
NameDescriptionTypeAdditional information
Titles

Collection of SeasonPageViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Titles": [
    {
      "CompetitionId": 1,
      "CompetitionName": "sample string 2",
      "TournamentType": "sample string 3",
      "Classification": "sample string 4",
      "Seasons": [
        {
          "SeasonId": 1,
          "Title": "sample string 2"
        },
        {
          "SeasonId": 1,
          "Title": "sample string 2"
        }
      ]
    },
    {
      "CompetitionId": 1,
      "CompetitionName": "sample string 2",
      "TournamentType": "sample string 3",
      "Classification": "sample string 4",
      "Seasons": [
        {
          "SeasonId": 1,
          "Title": "sample string 2"
        },
        {
          "SeasonId": 1,
          "Title": "sample string 2"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<PlayerTitlesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Titles>
    <SeasonPageViewModel>
      <Classification>sample string 4</Classification>
      <CompetitionId>1</CompetitionId>
      <CompetitionName>sample string 2</CompetitionName>
      <Seasons>
        <SeasonInfoViewModel>
          <SeasonId>1</SeasonId>
          <Title>sample string 2</Title>
        </SeasonInfoViewModel>
        <SeasonInfoViewModel>
          <SeasonId>1</SeasonId>
          <Title>sample string 2</Title>
        </SeasonInfoViewModel>
      </Seasons>
      <TournamentType>sample string 3</TournamentType>
    </SeasonPageViewModel>
    <SeasonPageViewModel>
      <Classification>sample string 4</Classification>
      <CompetitionId>1</CompetitionId>
      <CompetitionName>sample string 2</CompetitionName>
      <Seasons>
        <SeasonInfoViewModel>
          <SeasonId>1</SeasonId>
          <Title>sample string 2</Title>
        </SeasonInfoViewModel>
        <SeasonInfoViewModel>
          <SeasonId>1</SeasonId>
          <Title>sample string 2</Title>
        </SeasonInfoViewModel>
      </Seasons>
      <TournamentType>sample string 3</TournamentType>
    </SeasonPageViewModel>
  </Titles>
</PlayerTitlesViewModel>