POST api/season

Gets seasons

Request Information

URI Parameters

None.

Body Parameters

SeasonLimiter
NameDescriptionTypeAdditional information
Take

integer

Range: inclusive between 0 and 200

Skip

integer

Range: inclusive between 0 and 2147483647

Sort

string

None.

GetFormattetAndMappedSortString

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "Take": 1,
  "Skip": 2,
  "Sort": "sample string 3"
}

application/xml, text/xml

Sample:
<SeasonLimiter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpeedadminApi.ViewModels">
  <GetFormattetAndMappedSortString xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <Skip>2</Skip>
  <Sort>sample string 3</Sort>
  <Take>1</Take>
</SeasonLimiter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of SeasonViewModel
NameDescriptionTypeAdditional information
SeasonId

integer

None.

Season

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "SeasonId": 1,
    "Season": "sample string 2"
  },
  {
    "SeasonId": 1,
    "Season": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSeasonViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpeedadminApi.ViewModels">
  <SeasonViewModel>
    <Season>sample string 2</Season>
    <SeasonId>1</SeasonId>
  </SeasonViewModel>
  <SeasonViewModel>
    <Season>sample string 2</Season>
    <SeasonId>1</SeasonId>
  </SeasonViewModel>
</ArrayOfSeasonViewModel>