GET api/Tournament/{actions}

Retrieve tournament course information and the number of players signed up to play each course

Request Information

URI Parameters

NameDescriptionTypeAdditional information
actions

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CourseVM
NameDescriptionTypeAdditional information
CourseId

A unique id assigned to the course

integer

None.

CourseName

The name of the course

string

None.

PlayerCount

The number of players signed up to play the course for a tournament

integer

None.

TeamCount

team count by course

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CourseId": 1,
    "CourseName": "sample string 2",
    "PlayerCount": 3,
    "TeamCount": 4
  },
  {
    "CourseId": 1,
    "CourseName": "sample string 2",
    "PlayerCount": 3,
    "TeamCount": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfCourseVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TournamentRegistrationAPI.Models">
  <CourseVM>
    <CourseId>1</CourseId>
    <CourseName>sample string 2</CourseName>
    <PlayerCount>3</PlayerCount>
    <TeamCount>4</TeamCount>
  </CourseVM>
  <CourseVM>
    <CourseId>1</CourseId>
    <CourseName>sample string 2</CourseName>
    <PlayerCount>3</PlayerCount>
    <TeamCount>4</TeamCount>
  </CourseVM>
</ArrayOfCourseVM>