GET api/v{version}/season?id={id}

Get the seasons for a competion

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Required competition id

integer

Default value is -1

version

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of SeasonViewModel
NameDescriptionTypeAdditional information
SeasonId

The unique id.

integer

None.

Title

Name of the season.

string

None.

Sponsor

The main sponsor.

string

None.

Venue

Location where the games are/where played.

string

None.

City

City where the games are/where played.

string

None.

Country

Country where the games are/where played.

string

None.

CountryCode

CountryCode where the games are/where played.

string

None.

Winner

Winner of the season.

string

None.

WinnerId

integer

None.

WinnerKey

integer

None.

PrizeMoney

Total prize money.

string

None.

PrizeMoneyIndication

Total prize money indication (without special prizes).

string

None.

PrizeCurrency

The prize currency.

string

None.

CompetitionId

The related competition id.

integer

None.

Modified

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "SeasonId": 1,
    "Title": "sample string 2",
    "Sponsor": "sample string 3",
    "Venue": "sample string 4",
    "City": "sample string 5",
    "Country": "sample string 6",
    "CountryCode": "sample string 7",
    "Winner": "sample string 8",
    "WinnerId": 9,
    "WinnerKey": 10,
    "PrizeMoney": "sample string 11",
    "PrizeMoneyIndication": "sample string 12",
    "PrizeCurrency": "sample string 13",
    "CompetitionId": 1,
    "Modified": "2019-08-17T19:03:30.6557288+02:00"
  },
  {
    "SeasonId": 1,
    "Title": "sample string 2",
    "Sponsor": "sample string 3",
    "Venue": "sample string 4",
    "City": "sample string 5",
    "Country": "sample string 6",
    "CountryCode": "sample string 7",
    "Winner": "sample string 8",
    "WinnerId": 9,
    "WinnerKey": 10,
    "PrizeMoney": "sample string 11",
    "PrizeMoneyIndication": "sample string 12",
    "PrizeCurrency": "sample string 13",
    "CompetitionId": 1,
    "Modified": "2019-08-17T19:03:30.6557288+02:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSeasonViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv1.Models">
  <SeasonViewModel>
    <City>sample string 5</City>
    <CompetitionId>1</CompetitionId>
    <Country>sample string 6</Country>
    <CountryCode>sample string 7</CountryCode>
    <Modified>2019-08-17T19:03:30.6557288+02:00</Modified>
    <PrizeCurrency>sample string 13</PrizeCurrency>
    <PrizeMoney>sample string 11</PrizeMoney>
    <PrizeMoneyIndication>sample string 12</PrizeMoneyIndication>
    <SeasonId>1</SeasonId>
    <Sponsor>sample string 3</Sponsor>
    <Title>sample string 2</Title>
    <Venue>sample string 4</Venue>
    <Winner>sample string 8</Winner>
    <WinnerId>9</WinnerId>
    <WinnerKey>10</WinnerKey>
  </SeasonViewModel>
  <SeasonViewModel>
    <City>sample string 5</City>
    <CompetitionId>1</CompetitionId>
    <Country>sample string 6</Country>
    <CountryCode>sample string 7</CountryCode>
    <Modified>2019-08-17T19:03:30.6557288+02:00</Modified>
    <PrizeCurrency>sample string 13</PrizeCurrency>
    <PrizeMoney>sample string 11</PrizeMoney>
    <PrizeMoneyIndication>sample string 12</PrizeMoneyIndication>
    <SeasonId>1</SeasonId>
    <Sponsor>sample string 3</Sponsor>
    <Title>sample string 2</Title>
    <Venue>sample string 4</Venue>
    <Winner>sample string 8</Winner>
    <WinnerId>9</WinnerId>
    <WinnerKey>10</WinnerKey>
  </SeasonViewModel>
</ArrayOfSeasonViewModel>