GET api/v{version}/competition/tournamenttype/{tournamenttypes}?page={page}&pageSize={pageSize}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
tournamenttypes

string

Required

page

integer

Default value is 0

pageSize

integer

Default value is 0

version

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CompetitionViewModel
NameDescriptionTypeAdditional information
CompetitionId

integer

None.

Title

string

None.

Type

The tournament type.

string

None.

TypeId

The tournament type id.

integer

None.

Organisation

string

None.

OrganisationId

integer

None.

LevelOfDetail

string

None.

Labels

Collection of LabelViewModel

None.

Modified

date

None.

Group

string

None.

GroupId

integer

None.

Qualifier

If true, then this tournament is a qualifier tournament.

boolean

None.

Url

A link to the details of competition.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CompetitionId": 1,
    "Title": "sample string 2",
    "Type": "sample string 3",
    "TypeId": 1,
    "Organisation": "sample string 4",
    "OrganisationId": 5,
    "LevelOfDetail": "sample string 6",
    "Labels": [
      {
        "LabelId": 1,
        "Name": "sample string 2",
        "Slug": "sample string 3"
      },
      {
        "LabelId": 1,
        "Name": "sample string 2",
        "Slug": "sample string 3"
      }
    ],
    "Modified": "2024-02-22T12:29:37.1128785+01:00",
    "Group": "sample string 8",
    "GroupId": 9,
    "Qualifier": true,
    "Url": "sample string 11"
  },
  {
    "CompetitionId": 1,
    "Title": "sample string 2",
    "Type": "sample string 3",
    "TypeId": 1,
    "Organisation": "sample string 4",
    "OrganisationId": 5,
    "LevelOfDetail": "sample string 6",
    "Labels": [
      {
        "LabelId": 1,
        "Name": "sample string 2",
        "Slug": "sample string 3"
      },
      {
        "LabelId": 1,
        "Name": "sample string 2",
        "Slug": "sample string 3"
      }
    ],
    "Modified": "2024-02-22T12:29:37.1128785+01:00",
    "Group": "sample string 8",
    "GroupId": 9,
    "Qualifier": true,
    "Url": "sample string 11"
  }
]

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.Apiv2.Models">
  <CompetitionViewModel>
    <CompetitionId>1</CompetitionId>
    <Group>sample string 8</Group>
    <GroupId>9</GroupId>
    <Labels>
      <LabelViewModel>
        <LabelId>1</LabelId>
        <Name>sample string 2</Name>
        <Slug>sample string 3</Slug>
      </LabelViewModel>
      <LabelViewModel>
        <LabelId>1</LabelId>
        <Name>sample string 2</Name>
        <Slug>sample string 3</Slug>
      </LabelViewModel>
    </Labels>
    <LevelOfDetail>sample string 6</LevelOfDetail>
    <Modified>2024-02-22T12:29:37.1128785+01:00</Modified>
    <Organisation>sample string 4</Organisation>
    <OrganisationId>5</OrganisationId>
    <Qualifier>true</Qualifier>
    <Title>sample string 2</Title>
    <Type>sample string 3</Type>
  </CompetitionViewModel>
  <CompetitionViewModel>
    <CompetitionId>1</CompetitionId>
    <Group>sample string 8</Group>
    <GroupId>9</GroupId>
    <Labels>
      <LabelViewModel>
        <LabelId>1</LabelId>
        <Name>sample string 2</Name>
        <Slug>sample string 3</Slug>
      </LabelViewModel>
      <LabelViewModel>
        <LabelId>1</LabelId>
        <Name>sample string 2</Name>
        <Slug>sample string 3</Slug>
      </LabelViewModel>
    </Labels>
    <LevelOfDetail>sample string 6</LevelOfDetail>
    <Modified>2024-02-22T12:29:37.1128785+01:00</Modified>
    <Organisation>sample string 4</Organisation>
    <OrganisationId>5</OrganisationId>
    <Qualifier>true</Qualifier>
    <Title>sample string 2</Title>
    <Type>sample string 3</Type>
  </CompetitionViewModel>
</ArrayOfCompetitionViewModel>