GET api/DrawTypes

Gets all draw types

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A list of records.

Collection of DrawType
NameDescriptionTypeAdditional information
Id

Gets or sets the id.

integer

None.

DrawNumber

Gets or sets the draw number (used for sorting purposes).

integer

Required

Name

Gets or sets the name of the draw.

string

Required

GameType

Gets or sets the type of the game.

DrawGameType

None.

Abbreviation

Gets or sets the abbreviation (short name) of the game type.

string

None.

OdfId

Gets or sets the OdfId (ID for messages sent in ODF)

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "DrawNumber": 2,
    "Name": "sample string 3",
    "GameType": 0,
    "Abbreviation": "sample string 4",
    "OdfId": "sample string 5"
  },
  {
    "Id": 1,
    "DrawNumber": 2,
    "Name": "sample string 3",
    "GameType": 0,
    "Abbreviation": "sample string 4",
    "OdfId": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDrawType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/drawtype">
  <DrawType>
    <Abbreviation>sample string 4</Abbreviation>
    <DrawNumber>2</DrawNumber>
    <GameType>Roundrobin</GameType>
    <Id>1</Id>
    <Name>sample string 3</Name>
    <OdfId>sample string 5</OdfId>
  </DrawType>
  <DrawType>
    <Abbreviation>sample string 4</Abbreviation>
    <DrawNumber>2</DrawNumber>
    <GameType>Roundrobin</GameType>
    <Id>1</Id>
    <Name>sample string 3</Name>
    <OdfId>sample string 5</OdfId>
  </DrawType>
</ArrayOfDrawType>