POST api/Tournament/{actions}

Add golf tournament registration data to the Team and Player data tables in the TVCSGolf database.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
actions

string

None.

Body Parameters

TournamentVM
NameDescriptionTypeAdditional information
Players

Descriptive information about the players on a team

Collection of PlayerVM

None.

TeamName

The name of a team

string

None.

NumberCarts

Number of golf carts required for the tournament (0, 1, or 2)

integer

Required

CourseId

Preferred course (1 or 2)

integer

Required

TransactionId

The identification number of the payment transaction

string

None.

TransactionDtTm

The date and time of the payment transaction

date

None.

TransactionAmount

The dollar amount of the payment transaction

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Players": [
    {
      "FirstName": "sample string 1",
      "LastName": "sample string 2",
      "Email": "sample string 3",
      "StreetAddress": "sample string 4",
      "City": "sample string 5",
      "State": "sample string 6",
      "ZipCode": "sample string 7",
      "Phone": "sample string 8",
      "IsTeamCaptain": true,
      "Mulligans": 10,
      "MajorPrizeTickets": 11,
      "DrawingPrizeTickets": 12
    },
    {
      "FirstName": "sample string 1",
      "LastName": "sample string 2",
      "Email": "sample string 3",
      "StreetAddress": "sample string 4",
      "City": "sample string 5",
      "State": "sample string 6",
      "ZipCode": "sample string 7",
      "Phone": "sample string 8",
      "IsTeamCaptain": true,
      "Mulligans": 10,
      "MajorPrizeTickets": 11,
      "DrawingPrizeTickets": 12
    }
  ],
  "TeamName": "sample string 1",
  "NumberCarts": 2,
  "CourseId": 3,
  "TransactionId": "sample string 4",
  "TransactionDtTm": "2024-11-08T03:38:15.4542169-05:00",
  "TransactionAmount": 6
}

application/xml, text/xml

Sample:
<TournamentVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TournamentRegistrationAPI.Models">
  <CourseId>3</CourseId>
  <NumberCarts>2</NumberCarts>
  <Players>
    <PlayerVM>
      <City>sample string 5</City>
      <DrawingPrizeTickets>12</DrawingPrizeTickets>
      <Email>sample string 3</Email>
      <FirstName>sample string 1</FirstName>
      <IsTeamCaptain>true</IsTeamCaptain>
      <LastName>sample string 2</LastName>
      <MajorPrizeTickets>11</MajorPrizeTickets>
      <Mulligans>10</Mulligans>
      <Phone>sample string 8</Phone>
      <State>sample string 6</State>
      <StreetAddress>sample string 4</StreetAddress>
      <ZipCode>sample string 7</ZipCode>
    </PlayerVM>
    <PlayerVM>
      <City>sample string 5</City>
      <DrawingPrizeTickets>12</DrawingPrizeTickets>
      <Email>sample string 3</Email>
      <FirstName>sample string 1</FirstName>
      <IsTeamCaptain>true</IsTeamCaptain>
      <LastName>sample string 2</LastName>
      <MajorPrizeTickets>11</MajorPrizeTickets>
      <Mulligans>10</Mulligans>
      <Phone>sample string 8</Phone>
      <State>sample string 6</State>
      <StreetAddress>sample string 4</StreetAddress>
      <ZipCode>sample string 7</ZipCode>
    </PlayerVM>
  </Players>
  <TeamName>sample string 1</TeamName>
  <TransactionAmount>6</TransactionAmount>
  <TransactionDtTm>2024-11-08T03:38:15.4542169-05:00</TransactionDtTm>
  <TransactionId>sample string 4</TransactionId>
</TournamentVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TournamentVM
NameDescriptionTypeAdditional information
Players

Descriptive information about the players on a team

Collection of PlayerVM

None.

TeamName

The name of a team

string

None.

NumberCarts

Number of golf carts required for the tournament (0, 1, or 2)

integer

Required

CourseId

Preferred course (1 or 2)

integer

Required

TransactionId

The identification number of the payment transaction

string

None.

TransactionDtTm

The date and time of the payment transaction

date

None.

TransactionAmount

The dollar amount of the payment transaction

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Players": [
    {
      "FirstName": "sample string 1",
      "LastName": "sample string 2",
      "Email": "sample string 3",
      "StreetAddress": "sample string 4",
      "City": "sample string 5",
      "State": "sample string 6",
      "ZipCode": "sample string 7",
      "Phone": "sample string 8",
      "IsTeamCaptain": true,
      "Mulligans": 10,
      "MajorPrizeTickets": 11,
      "DrawingPrizeTickets": 12
    },
    {
      "FirstName": "sample string 1",
      "LastName": "sample string 2",
      "Email": "sample string 3",
      "StreetAddress": "sample string 4",
      "City": "sample string 5",
      "State": "sample string 6",
      "ZipCode": "sample string 7",
      "Phone": "sample string 8",
      "IsTeamCaptain": true,
      "Mulligans": 10,
      "MajorPrizeTickets": 11,
      "DrawingPrizeTickets": 12
    }
  ],
  "TeamName": "sample string 1",
  "NumberCarts": 2,
  "CourseId": 3,
  "TransactionId": "sample string 4",
  "TransactionDtTm": "2024-11-08T03:38:15.7198607-05:00",
  "TransactionAmount": 6
}

application/xml, text/xml

Sample:
<TournamentVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TournamentRegistrationAPI.Models">
  <CourseId>3</CourseId>
  <NumberCarts>2</NumberCarts>
  <Players>
    <PlayerVM>
      <City>sample string 5</City>
      <DrawingPrizeTickets>12</DrawingPrizeTickets>
      <Email>sample string 3</Email>
      <FirstName>sample string 1</FirstName>
      <IsTeamCaptain>true</IsTeamCaptain>
      <LastName>sample string 2</LastName>
      <MajorPrizeTickets>11</MajorPrizeTickets>
      <Mulligans>10</Mulligans>
      <Phone>sample string 8</Phone>
      <State>sample string 6</State>
      <StreetAddress>sample string 4</StreetAddress>
      <ZipCode>sample string 7</ZipCode>
    </PlayerVM>
    <PlayerVM>
      <City>sample string 5</City>
      <DrawingPrizeTickets>12</DrawingPrizeTickets>
      <Email>sample string 3</Email>
      <FirstName>sample string 1</FirstName>
      <IsTeamCaptain>true</IsTeamCaptain>
      <LastName>sample string 2</LastName>
      <MajorPrizeTickets>11</MajorPrizeTickets>
      <Mulligans>10</Mulligans>
      <Phone>sample string 8</Phone>
      <State>sample string 6</State>
      <StreetAddress>sample string 4</StreetAddress>
      <ZipCode>sample string 7</ZipCode>
    </PlayerVM>
  </Players>
  <TeamName>sample string 1</TeamName>
  <TransactionAmount>6</TransactionAmount>
  <TransactionDtTm>2024-11-08T03:38:15.7198607-05:00</TransactionDtTm>
  <TransactionId>sample string 4</TransactionId>
</TournamentVM>