GET api/v{version}/schedule/tournament/{year}?tournamentType={tournamentType}&tournamentTypeGroup={tournamentTypeGroup}&seasonStatus={seasonStatus}

Get the schedules of all the defined tournaments

Request Information

URI Parameters

NameDescriptionTypeAdditional information
year

the schedule year

integer

Required

tournamentType

string

None.

tournamentTypeGroup

string

None.

seasonStatus

string

None.

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,
          "Name": "sample string 2",
          "Schema": "sample string 3",
          "Start": "2023-12-07T07:29:28.2447907+01:00",
          "End": "2023-12-07T07:29:28.2447907+01:00",
          "Venue": {
            "VenueId": 1,
            "City": "sample string 2",
            "Country": "sample string 3",
            "CountryCode": "sample string 4",
            "Name": "sample string 5"
          },
          "Competition": {
            "CompetitionId": 1,
            "Name": "sample string 1"
          },
          "Status": "sample string 4",
          "TournamentType": "sample string 5",
          "TournamentTypeGroup": "sample string 6"
        },
        {
          "SeasonId": 1,
          "Name": "sample string 2",
          "Schema": "sample string 3",
          "Start": "2023-12-07T07:29:28.2447907+01:00",
          "End": "2023-12-07T07:29:28.2447907+01:00",
          "Venue": {
            "VenueId": 1,
            "City": "sample string 2",
            "Country": "sample string 3",
            "CountryCode": "sample string 4",
            "Name": "sample string 5"
          },
          "Competition": {
            "CompetitionId": 1,
            "Name": "sample string 1"
          },
          "Status": "sample string 4",
          "TournamentType": "sample string 5",
          "TournamentTypeGroup": "sample string 6"
        }
      ],
      "Start": "2023-12-07T07:29:28.2447907+01:00",
      "End": "2023-12-07T07:29:28.2447907+01:00"
    },
    {
      "Tournament": "sample string 1",
      "Seasons": [
        {
          "SeasonId": 1,
          "Name": "sample string 2",
          "Schema": "sample string 3",
          "Start": "2023-12-07T07:29:28.2447907+01:00",
          "End": "2023-12-07T07:29:28.2447907+01:00",
          "Venue": {
            "VenueId": 1,
            "City": "sample string 2",
            "Country": "sample string 3",
            "CountryCode": "sample string 4",
            "Name": "sample string 5"
          },
          "Competition": {
            "CompetitionId": 1,
            "Name": "sample string 1"
          },
          "Status": "sample string 4",
          "TournamentType": "sample string 5",
          "TournamentTypeGroup": "sample string 6"
        },
        {
          "SeasonId": 1,
          "Name": "sample string 2",
          "Schema": "sample string 3",
          "Start": "2023-12-07T07:29:28.2447907+01:00",
          "End": "2023-12-07T07:29:28.2447907+01:00",
          "Venue": {
            "VenueId": 1,
            "City": "sample string 2",
            "Country": "sample string 3",
            "CountryCode": "sample string 4",
            "Name": "sample string 5"
          },
          "Competition": {
            "CompetitionId": 1,
            "Name": "sample string 1"
          },
          "Status": "sample string 4",
          "TournamentType": "sample string 5",
          "TournamentTypeGroup": "sample string 6"
        }
      ],
      "Start": "2023-12-07T07:29:28.2447907+01:00",
      "End": "2023-12-07T07:29:28.2447907+01: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>2023-12-07T07:29:28.2447907+01:00</End>
      <Seasons>
        <SeasonScheduleViewModel>
          <End>2023-12-07T07:29:28.2447907+01:00</End>
          <Name>sample string 2</Name>
          <Schema>sample string 3</Schema>
          <SeasonId>1</SeasonId>
          <Start>2023-12-07T07:29:28.2447907+01:00</Start>
        </SeasonScheduleViewModel>
        <SeasonScheduleViewModel>
          <End>2023-12-07T07:29:28.2447907+01:00</End>
          <Name>sample string 2</Name>
          <Schema>sample string 3</Schema>
          <SeasonId>1</SeasonId>
          <Start>2023-12-07T07:29:28.2447907+01:00</Start>
        </SeasonScheduleViewModel>
      </Seasons>
      <Start>2023-12-07T07:29:28.2447907+01:00</Start>
      <Tournament>sample string 1</Tournament>
    </TournamentScheduleViewModel>
    <TournamentScheduleViewModel>
      <End>2023-12-07T07:29:28.2447907+01:00</End>
      <Seasons>
        <SeasonScheduleViewModel>
          <End>2023-12-07T07:29:28.2447907+01:00</End>
          <Name>sample string 2</Name>
          <Schema>sample string 3</Schema>
          <SeasonId>1</SeasonId>
          <Start>2023-12-07T07:29:28.2447907+01:00</Start>
        </SeasonScheduleViewModel>
        <SeasonScheduleViewModel>
          <End>2023-12-07T07:29:28.2447907+01:00</End>
          <Name>sample string 2</Name>
          <Schema>sample string 3</Schema>
          <SeasonId>1</SeasonId>
          <Start>2023-12-07T07:29:28.2447907+01:00</Start>
        </SeasonScheduleViewModel>
      </Seasons>
      <Start>2023-12-07T07:29:28.2447907+01:00</Start>
      <Tournament>sample string 1</Tournament>
    </TournamentScheduleViewModel>
  </Tournaments>
</ScheduleTournamentViewModel>