GET api/v{version}/schedule/tournament/{year}

Get the schedules of all the defined tournaments

Request Information

URI Parameters

NameDescriptionTypeAdditional information
year

the schedule year

integer

Required

version

string

None.

Body Parameters

None.

Response Information

Resource Description

ScheduleTournamentViewModel
NameDescriptionTypeAdditional information
Tournaments

Collection of TournamentScheduleViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Tournaments": [
    {
      "Tournament": "sample string 1",
      "Seasons": [
        {
          "SeasonId": 1,
          "Title": "sample string 2",
          "Start": "2021-07-29T13:14:11.0546022+02:00",
          "End": "2021-07-29T13:14:11.0546022+02:00",
          "CompetitionId": 1,
          "Competition": "sample string 3"
        },
        {
          "SeasonId": 1,
          "Title": "sample string 2",
          "Start": "2021-07-29T13:14:11.0546022+02:00",
          "End": "2021-07-29T13:14:11.0546022+02:00",
          "CompetitionId": 1,
          "Competition": "sample string 3"
        }
      ],
      "Start": "2021-07-29T13:14:11.0546022+02:00",
      "End": "2021-07-29T13:14:11.0546022+02:00"
    },
    {
      "Tournament": "sample string 1",
      "Seasons": [
        {
          "SeasonId": 1,
          "Title": "sample string 2",
          "Start": "2021-07-29T13:14:11.0546022+02:00",
          "End": "2021-07-29T13:14:11.0546022+02:00",
          "CompetitionId": 1,
          "Competition": "sample string 3"
        },
        {
          "SeasonId": 1,
          "Title": "sample string 2",
          "Start": "2021-07-29T13:14:11.0546022+02:00",
          "End": "2021-07-29T13:14:11.0546022+02:00",
          "CompetitionId": 1,
          "Competition": "sample string 3"
        }
      ],
      "Start": "2021-07-29T13:14:11.0546022+02:00",
      "End": "2021-07-29T13:14:11.0546022+02:00"
    }
  ]
}

application/xml, text/xml

Sample:
<ScheduleTournamentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Tournaments>
    <TournamentScheduleViewModel>
      <End>2021-07-29T13:14:11.0546022+02:00</End>
      <Seasons>
        <SeasonScheduleViewModel>
          <End>2021-07-29T13:14:11.0546022+02:00</End>
          <SeasonId>1</SeasonId>
          <Start>2021-07-29T13:14:11.0546022+02:00</Start>
          <Title>sample string 2</Title>
        </SeasonScheduleViewModel>
        <SeasonScheduleViewModel>
          <End>2021-07-29T13:14:11.0546022+02:00</End>
          <SeasonId>1</SeasonId>
          <Start>2021-07-29T13:14:11.0546022+02:00</Start>
          <Title>sample string 2</Title>
        </SeasonScheduleViewModel>
      </Seasons>
      <Start>2021-07-29T13:14:11.0546022+02:00</Start>
      <Tournament>sample string 1</Tournament>
    </TournamentScheduleViewModel>
    <TournamentScheduleViewModel>
      <End>2021-07-29T13:14:11.0546022+02:00</End>
      <Seasons>
        <SeasonScheduleViewModel>
          <End>2021-07-29T13:14:11.0546022+02:00</End>
          <SeasonId>1</SeasonId>
          <Start>2021-07-29T13:14:11.0546022+02:00</Start>
          <Title>sample string 2</Title>
        </SeasonScheduleViewModel>
        <SeasonScheduleViewModel>
          <End>2021-07-29T13:14:11.0546022+02:00</End>
          <SeasonId>1</SeasonId>
          <Start>2021-07-29T13:14:11.0546022+02:00</Start>
          <Title>sample string 2</Title>
        </SeasonScheduleViewModel>
      </Seasons>
      <Start>2021-07-29T13:14:11.0546022+02:00</Start>
      <Tournament>sample string 1</Tournament>
    </TournamentScheduleViewModel>
  </Tournaments>
</ScheduleTournamentViewModel>