GET api/v{version}/tournament/seasons/{start}/{end}

Get the tournaments and the related seasons for a couple of years. The season start year will be between (includes) the start- and endyear.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
start

Start year

integer

Required

end

Ebd year

integer

Required

version

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of TournamentDetailsViewModel
NameDescriptionTypeAdditional information
TournamentId

integer

None.

Name

string

None.

Groups

Collection of TournamentGroupViewModel

None.

Area

string

None.

CountryCode

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "TournamentId": 1,
    "Name": "sample string 2",
    "Groups": [
      {
        "Name": "sample string 1",
        "Seasons": [
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:39:32.756023+02:00",
            "End": "2021-04-16T19:39:32.756023+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          },
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:39:32.756023+02:00",
            "End": "2021-04-16T19:39:32.756023+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          }
        ],
        "Start": "2021-04-16T19:39:32.756023+02:00",
        "End": "2021-04-16T19:39:32.756023+02:00"
      },
      {
        "Name": "sample string 1",
        "Seasons": [
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:39:32.756023+02:00",
            "End": "2021-04-16T19:39:32.756023+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          },
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:39:32.756023+02:00",
            "End": "2021-04-16T19:39:32.756023+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          }
        ],
        "Start": "2021-04-16T19:39:32.756023+02:00",
        "End": "2021-04-16T19:39:32.756023+02:00"
      }
    ],
    "Area": "sample string 3",
    "CountryCode": "sample string 4"
  },
  {
    "TournamentId": 1,
    "Name": "sample string 2",
    "Groups": [
      {
        "Name": "sample string 1",
        "Seasons": [
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:39:32.756023+02:00",
            "End": "2021-04-16T19:39:32.756023+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          },
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:39:32.756023+02:00",
            "End": "2021-04-16T19:39:32.756023+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          }
        ],
        "Start": "2021-04-16T19:39:32.756023+02:00",
        "End": "2021-04-16T19:39:32.756023+02:00"
      },
      {
        "Name": "sample string 1",
        "Seasons": [
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:39:32.756023+02:00",
            "End": "2021-04-16T19:39:32.756023+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          },
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:39:32.756023+02:00",
            "End": "2021-04-16T19:39:32.756023+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          }
        ],
        "Start": "2021-04-16T19:39:32.756023+02:00",
        "End": "2021-04-16T19:39:32.756023+02:00"
      }
    ],
    "Area": "sample string 3",
    "CountryCode": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTournamentDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <TournamentDetailsViewModel>
    <CountryCode>sample string 4</CountryCode>
    <Groups>
      <TournamentGroupViewModel>
        <End>2021-04-16T19:39:32.756023+02:00</End>
        <Name>sample string 1</Name>
        <Seasons>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:39:32.756023+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:39:32.756023+02:00</Start>
          </TournamentSeasonViewModel>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:39:32.756023+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:39:32.756023+02:00</Start>
          </TournamentSeasonViewModel>
        </Seasons>
        <Start>2021-04-16T19:39:32.756023+02:00</Start>
      </TournamentGroupViewModel>
      <TournamentGroupViewModel>
        <End>2021-04-16T19:39:32.756023+02:00</End>
        <Name>sample string 1</Name>
        <Seasons>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:39:32.756023+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:39:32.756023+02:00</Start>
          </TournamentSeasonViewModel>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:39:32.756023+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:39:32.756023+02:00</Start>
          </TournamentSeasonViewModel>
        </Seasons>
        <Start>2021-04-16T19:39:32.756023+02:00</Start>
      </TournamentGroupViewModel>
    </Groups>
    <Name>sample string 2</Name>
    <TournamentId>1</TournamentId>
  </TournamentDetailsViewModel>
  <TournamentDetailsViewModel>
    <CountryCode>sample string 4</CountryCode>
    <Groups>
      <TournamentGroupViewModel>
        <End>2021-04-16T19:39:32.756023+02:00</End>
        <Name>sample string 1</Name>
        <Seasons>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:39:32.756023+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:39:32.756023+02:00</Start>
          </TournamentSeasonViewModel>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:39:32.756023+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:39:32.756023+02:00</Start>
          </TournamentSeasonViewModel>
        </Seasons>
        <Start>2021-04-16T19:39:32.756023+02:00</Start>
      </TournamentGroupViewModel>
      <TournamentGroupViewModel>
        <End>2021-04-16T19:39:32.756023+02:00</End>
        <Name>sample string 1</Name>
        <Seasons>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:39:32.756023+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:39:32.756023+02:00</Start>
          </TournamentSeasonViewModel>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:39:32.756023+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:39:32.756023+02:00</Start>
          </TournamentSeasonViewModel>
        </Seasons>
        <Start>2021-04-16T19:39:32.756023+02:00</Start>
      </TournamentGroupViewModel>
    </Groups>
    <Name>sample string 2</Name>
    <TournamentId>1</TournamentId>
  </TournamentDetailsViewModel>
</ArrayOfTournamentDetailsViewModel>