GET api/v{version}/tournamenttype

Get all available tournamenttypes

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of TournamentTypeViewModel
NameDescriptionTypeAdditional information
TournamentTypeId

integer

None.

Name

string

None.

Slug

string

None.

DisplayOrder

integer

None.

TournamentTypeGroupId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "TournamentTypeId": 1,
    "Name": "sample string 2",
    "Slug": "sample string 3",
    "DisplayOrder": 4,
    "TournamentTypeGroupId": 1
  },
  {
    "TournamentTypeId": 1,
    "Name": "sample string 2",
    "Slug": "sample string 3",
    "DisplayOrder": 4,
    "TournamentTypeGroupId": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfTournamentTypeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Mappers">
  <TournamentTypeViewModel>
    <DisplayOrder>4</DisplayOrder>
    <Name>sample string 2</Name>
    <Slug>sample string 3</Slug>
    <TournamentTypeGroupId>1</TournamentTypeGroupId>
    <TournamentTypeId>1</TournamentTypeId>
  </TournamentTypeViewModel>
  <TournamentTypeViewModel>
    <DisplayOrder>4</DisplayOrder>
    <Name>sample string 2</Name>
    <Slug>sample string 3</Slug>
    <TournamentTypeGroupId>1</TournamentTypeGroupId>
    <TournamentTypeId>1</TournamentTypeId>
  </TournamentTypeViewModel>
</ArrayOfTournamentTypeViewModel>