GET api/v{version}/tournament/seasons

Get the tournaments and the related seasons.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
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:05:36.0398322+02:00",
            "End": "2021-04-16T19:05:36.0398322+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          },
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:05:36.0398322+02:00",
            "End": "2021-04-16T19:05:36.0398322+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          }
        ],
        "Start": "2021-04-16T19:05:36.0554614+02:00",
        "End": "2021-04-16T19:05:36.0554614+02:00"
      },
      {
        "Name": "sample string 1",
        "Seasons": [
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:05:36.0398322+02:00",
            "End": "2021-04-16T19:05:36.0398322+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          },
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:05:36.0398322+02:00",
            "End": "2021-04-16T19:05:36.0398322+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          }
        ],
        "Start": "2021-04-16T19:05:36.0554614+02:00",
        "End": "2021-04-16T19:05:36.0554614+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:05:36.0398322+02:00",
            "End": "2021-04-16T19:05:36.0398322+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          },
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:05:36.0398322+02:00",
            "End": "2021-04-16T19:05:36.0398322+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          }
        ],
        "Start": "2021-04-16T19:05:36.0554614+02:00",
        "End": "2021-04-16T19:05:36.0554614+02:00"
      },
      {
        "Name": "sample string 1",
        "Seasons": [
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:05:36.0398322+02:00",
            "End": "2021-04-16T19:05:36.0398322+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          },
          {
            "SeasonId": 1,
            "Edition": 1,
            "Start": "2021-04-16T19:05:36.0398322+02:00",
            "End": "2021-04-16T19:05:36.0398322+02:00",
            "CompetitionId": 2,
            "Competition": "sample string 3"
          }
        ],
        "Start": "2021-04-16T19:05:36.0554614+02:00",
        "End": "2021-04-16T19:05:36.0554614+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:05:36.0554614+02:00</End>
        <Name>sample string 1</Name>
        <Seasons>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:05:36.0398322+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:05:36.0398322+02:00</Start>
          </TournamentSeasonViewModel>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:05:36.0398322+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:05:36.0398322+02:00</Start>
          </TournamentSeasonViewModel>
        </Seasons>
        <Start>2021-04-16T19:05:36.0554614+02:00</Start>
      </TournamentGroupViewModel>
      <TournamentGroupViewModel>
        <End>2021-04-16T19:05:36.0554614+02:00</End>
        <Name>sample string 1</Name>
        <Seasons>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:05:36.0398322+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:05:36.0398322+02:00</Start>
          </TournamentSeasonViewModel>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:05:36.0398322+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:05:36.0398322+02:00</Start>
          </TournamentSeasonViewModel>
        </Seasons>
        <Start>2021-04-16T19:05:36.0554614+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:05:36.0554614+02:00</End>
        <Name>sample string 1</Name>
        <Seasons>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:05:36.0398322+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:05:36.0398322+02:00</Start>
          </TournamentSeasonViewModel>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:05:36.0398322+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:05:36.0398322+02:00</Start>
          </TournamentSeasonViewModel>
        </Seasons>
        <Start>2021-04-16T19:05:36.0554614+02:00</Start>
      </TournamentGroupViewModel>
      <TournamentGroupViewModel>
        <End>2021-04-16T19:05:36.0554614+02:00</End>
        <Name>sample string 1</Name>
        <Seasons>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:05:36.0398322+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:05:36.0398322+02:00</Start>
          </TournamentSeasonViewModel>
          <TournamentSeasonViewModel>
            <Edition>1</Edition>
            <End>2021-04-16T19:05:36.0398322+02:00</End>
            <SeasonId>1</SeasonId>
            <Start>2021-04-16T19:05:36.0398322+02:00</Start>
          </TournamentSeasonViewModel>
        </Seasons>
        <Start>2021-04-16T19:05:36.0554614+02:00</Start>
      </TournamentGroupViewModel>
    </Groups>
    <Name>sample string 2</Name>
    <TournamentId>1</TournamentId>
  </TournamentDetailsViewModel>
</ArrayOfTournamentDetailsViewModel>