GET api/v{version}/player/{id}/toplay?count={count}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

count

integer

Default value is 20

version

string

None.

Body Parameters

None.

Response Information

Resource Description

ToPlayViewModel
NameDescriptionTypeAdditional information
Seasons

Collection of SeasonToPlayViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Seasons": [
    {
      "CompetitionId": 1,
      "Competition": "sample string 2",
      "SeasonId": 3,
      "Season": "sample string 4",
      "StartDate": "2020-10-26T21:47:34.4122342+01:00"
    },
    {
      "CompetitionId": 1,
      "Competition": "sample string 2",
      "SeasonId": 3,
      "Season": "sample string 4",
      "StartDate": "2020-10-26T21:47:34.4122342+01:00"
    }
  ]
}

application/xml, text/xml

Sample:
<ToPlayViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Seasons>
    <SeasonToPlayViewModel>
      <Competition>sample string 2</Competition>
      <CompetitionId>1</CompetitionId>
      <Season>sample string 4</Season>
      <SeasonId>3</SeasonId>
      <StartDate>2020-10-26T21:47:34.4122342+01:00</StartDate>
    </SeasonToPlayViewModel>
    <SeasonToPlayViewModel>
      <Competition>sample string 2</Competition>
      <CompetitionId>1</CompetitionId>
      <Season>sample string 4</Season>
      <SeasonId>3</SeasonId>
      <StartDate>2020-10-26T21:47:34.4122342+01:00</StartDate>
    </SeasonToPlayViewModel>
  </Seasons>
</ToPlayViewModel>