GET api/v{version}/tournament/seasons/{id}

Get the information of a specific tournament.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

tournament id

integer

Required

version

string

None.

Body Parameters

None.

Response Information

Resource Description

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-07-29T14:09:38.310231+02:00",
          "End": "2021-07-29T14:09:38.310231+02:00",
          "CompetitionId": 2,
          "Competition": "sample string 3"
        },
        {
          "SeasonId": 1,
          "Edition": 1,
          "Start": "2021-07-29T14:09:38.310231+02:00",
          "End": "2021-07-29T14:09:38.310231+02:00",
          "CompetitionId": 2,
          "Competition": "sample string 3"
        }
      ],
      "Start": "2021-07-29T14:09:38.310231+02:00",
      "End": "2021-07-29T14:09:38.310231+02:00"
    },
    {
      "Name": "sample string 1",
      "Seasons": [
        {
          "SeasonId": 1,
          "Edition": 1,
          "Start": "2021-07-29T14:09:38.310231+02:00",
          "End": "2021-07-29T14:09:38.310231+02:00",
          "CompetitionId": 2,
          "Competition": "sample string 3"
        },
        {
          "SeasonId": 1,
          "Edition": 1,
          "Start": "2021-07-29T14:09:38.310231+02:00",
          "End": "2021-07-29T14:09:38.310231+02:00",
          "CompetitionId": 2,
          "Competition": "sample string 3"
        }
      ],
      "Start": "2021-07-29T14:09:38.310231+02:00",
      "End": "2021-07-29T14:09:38.310231+02:00"
    }
  ],
  "Area": "sample string 3",
  "CountryCode": "sample string 4"
}

application/xml, text/xml

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