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

Get the schedules of all the defined season which are not part of a tournament.

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

ScheduleSeasonViewModel
NameDescriptionTypeAdditional information
Seasons

Collection of SeasonScheduleViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Seasons": [
    {
      "SeasonId": 1,
      "Name": "sample string 2",
      "Schema": "sample string 3",
      "Start": "2023-12-07T08:37:34.8493062+01:00",
      "End": "2023-12-07T08:37:34.8493062+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-07T08:37:34.8493062+01:00",
      "End": "2023-12-07T08:37:34.8493062+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"
    }
  ]
}

application/xml, text/xml

Sample:
<ScheduleSeasonViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Seasons>
    <SeasonScheduleViewModel>
      <End>2023-12-07T08:37:34.8493062+01:00</End>
      <Name>sample string 2</Name>
      <Schema>sample string 3</Schema>
      <SeasonId>1</SeasonId>
      <Start>2023-12-07T08:37:34.8493062+01:00</Start>
    </SeasonScheduleViewModel>
    <SeasonScheduleViewModel>
      <End>2023-12-07T08:37:34.8493062+01:00</End>
      <Name>sample string 2</Name>
      <Schema>sample string 3</Schema>
      <SeasonId>1</SeasonId>
      <Start>2023-12-07T08:37:34.8493062+01:00</Start>
    </SeasonScheduleViewModel>
  </Seasons>
</ScheduleSeasonViewModel>