GET api/TournamentTypes

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of TournamentType
NameDescriptionTypeAdditional information
Type

Gets or sets the type id of the tournament.

integer

None.

Name

Gets or sets the name of the type.

string

Required

Code

Gets or sets the code.

string

Required

IsActive

Gets or sets a value indicating whether this type is still active.

boolean

None.

ZoneType

Gets or sets the type of the zone.

TournamentZones

None.

Ends

Gets or sets the number of ends this type uses by default.

integer

None.

SortOrder

Gets or sets the sort order to be used when sorting values for display purposes.

integer

None.

Links

Gets the relation links.

Collection of EntityLink

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Type": 1,
    "Name": "sample string 2",
    "Code": "sample string 3",
    "IsActive": true,
    "ZoneType": 0,
    "Ends": 1,
    "SortOrder": 1,
    "Links": []
  },
  {
    "Type": 1,
    "Name": "sample string 2",
    "Code": "sample string 3",
    "IsActive": true,
    "ZoneType": 0,
    "Ends": 1,
    "SortOrder": 1,
    "Links": []
  }
]

application/xml, text/xml

Sample:
<ArrayOfTournamentType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/tournamenttype">
  <TournamentType>
    <Links xmlns:d3p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
    <Code>sample string 3</Code>
    <Ends>1</Ends>
    <IsActive>true</IsActive>
    <Name>sample string 2</Name>
    <SortOrder>1</SortOrder>
    <Type>1</Type>
    <ZoneType>All</ZoneType>
  </TournamentType>
  <TournamentType>
    <Links xmlns:d3p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
    <Code>sample string 3</Code>
    <Ends>1</Ends>
    <IsActive>true</IsActive>
    <Name>sample string 2</Name>
    <SortOrder>1</SortOrder>
    <Type>1</Type>
    <ZoneType>All</ZoneType>
  </TournamentType>
</ArrayOfTournamentType>