GET api/v{version}/competition

Get list of all the available competitions.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CompetitionViewModel
NameDescriptionTypeAdditional information
CompetitionId

integer

None.

Title

string

None.

Type

string

None.

Modified

date

None.

Group

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CompetitionId": 1,
    "Title": "sample string 2",
    "Type": "sample string 3",
    "Modified": "2019-04-25T17:49:11.8848954+02:00",
    "Group": "sample string 5"
  },
  {
    "CompetitionId": 1,
    "Title": "sample string 2",
    "Type": "sample string 3",
    "Modified": "2019-04-25T17:49:11.8848954+02:00",
    "Group": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCompetitionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv1.Models">
  <CompetitionViewModel>
    <CompetitionId>1</CompetitionId>
    <Group>sample string 5</Group>
    <Modified>2019-04-25T17:49:11.8848954+02:00</Modified>
    <Title>sample string 2</Title>
    <Type>sample string 3</Type>
  </CompetitionViewModel>
  <CompetitionViewModel>
    <CompetitionId>1</CompetitionId>
    <Group>sample string 5</Group>
    <Modified>2019-04-25T17:49:11.8848954+02:00</Modified>
    <Title>sample string 2</Title>
    <Type>sample string 3</Type>
  </CompetitionViewModel>
</ArrayOfCompetitionViewModel>