GET api/v{version}/ranking/player/{playerId}?date={date}

Get the position in all the rankings for a player.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
playerId

integer

Required

date

date in format: dd-mm-yyyy. If empty the live runs are used, if not then the first available saved ranking run is picked.

string

None.

version

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of PlayerRankingScoreViewModel
NameDescriptionTypeAdditional information
Ranking

string

None.

RankingId

integer

None.

RankingRunId

integer

None.

PositionData

PlayerRankingData

None.

ExecutedFor

date

None.

ExecutedOn

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Ranking": "sample string 1",
    "RankingId": 1,
    "RankingRunId": 1,
    "PositionData": {
      "Position": 1,
      "Value": "sample string 2",
      "PlayerId": 3,
      "MemberId": "sample string 4"
    },
    "ExecutedFor": "2023-12-07T07:49:01.6705957+01:00",
    "ExecutedOn": "2023-12-07T07:49:01.6705957+01:00"
  },
  {
    "Ranking": "sample string 1",
    "RankingId": 1,
    "RankingRunId": 1,
    "PositionData": {
      "Position": 1,
      "Value": "sample string 2",
      "PlayerId": 3,
      "MemberId": "sample string 4"
    },
    "ExecutedFor": "2023-12-07T07:49:01.6705957+01:00",
    "ExecutedOn": "2023-12-07T07:49:01.6705957+01:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPlayerRankingScoreViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Controllers">
  <PlayerRankingScoreViewModel>
    <ExecutedFor>2023-12-07T07:49:01.6705957+01:00</ExecutedFor>
    <ExecutedOn>2023-12-07T07:49:01.6705957+01:00</ExecutedOn>
    <PositionData>
      <MemberId>sample string 4</MemberId>
      <PlayerId>3</PlayerId>
      <Position>1</Position>
      <Value>sample string 2</Value>
    </PositionData>
    <Ranking>sample string 1</Ranking>
    <RankingId>1</RankingId>
    <RankingRunId>1</RankingRunId>
  </PlayerRankingScoreViewModel>
  <PlayerRankingScoreViewModel>
    <ExecutedFor>2023-12-07T07:49:01.6705957+01:00</ExecutedFor>
    <ExecutedOn>2023-12-07T07:49:01.6705957+01:00</ExecutedOn>
    <PositionData>
      <MemberId>sample string 4</MemberId>
      <PlayerId>3</PlayerId>
      <Position>1</Position>
      <Value>sample string 2</Value>
    </PositionData>
    <Ranking>sample string 1</Ranking>
    <RankingId>1</RankingId>
    <RankingRunId>1</RankingRunId>
  </PlayerRankingScoreViewModel>
</ArrayOfPlayerRankingScoreViewModel>