POST api/LeaderBoardResult/AddLeaderBoardResult

Request Information

URI Parameters

None.

Body Parameters

Collection of LeaderBoardResultDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Username

string

None.

CustomerImage

string

None.

Points

integer

None.

ContestId

globally unique identifier

None.

Description

string

None.

IsTieBreakerWinner

boolean

None.

TieBreakerAnswer

string

None.

TieBreakerResponse

string

None.

WinnerDesc

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": "59c91726-3b48-4f39-96fb-27c14ab5b6b5",
    "Username": "sample string 2",
    "CustomerImage": "sample string 3",
    "Points": 1,
    "ContestId": "876ebd47-3d26-40f2-9df6-ce47482c89a1",
    "Description": "sample string 5",
    "IsTieBreakerWinner": true,
    "TieBreakerAnswer": "sample string 6",
    "TieBreakerResponse": "sample string 7",
    "WinnerDesc": "sample string 8"
  },
  {
    "Id": "59c91726-3b48-4f39-96fb-27c14ab5b6b5",
    "Username": "sample string 2",
    "CustomerImage": "sample string 3",
    "Points": 1,
    "ContestId": "876ebd47-3d26-40f2-9df6-ce47482c89a1",
    "Description": "sample string 5",
    "IsTieBreakerWinner": true,
    "TieBreakerAnswer": "sample string 6",
    "TieBreakerResponse": "sample string 7",
    "WinnerDesc": "sample string 8"
  }
]

application/xml, text/xml

Sample:
<ArrayOfLeaderBoardResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.LeaderBoardResultModule.Model">
  <LeaderBoardResultDto>
    <ContestId>876ebd47-3d26-40f2-9df6-ce47482c89a1</ContestId>
    <CustomerImage>sample string 3</CustomerImage>
    <Description>sample string 5</Description>
    <Id>59c91726-3b48-4f39-96fb-27c14ab5b6b5</Id>
    <IsTieBreakerWinner>true</IsTieBreakerWinner>
    <Points>1</Points>
    <TieBreakerAnswer>sample string 6</TieBreakerAnswer>
    <TieBreakerResponse>sample string 7</TieBreakerResponse>
    <Username>sample string 2</Username>
    <WinnerDesc>sample string 8</WinnerDesc>
  </LeaderBoardResultDto>
  <LeaderBoardResultDto>
    <ContestId>876ebd47-3d26-40f2-9df6-ce47482c89a1</ContestId>
    <CustomerImage>sample string 3</CustomerImage>
    <Description>sample string 5</Description>
    <Id>59c91726-3b48-4f39-96fb-27c14ab5b6b5</Id>
    <IsTieBreakerWinner>true</IsTieBreakerWinner>
    <Points>1</Points>
    <TieBreakerAnswer>sample string 6</TieBreakerAnswer>
    <TieBreakerResponse>sample string 7</TieBreakerResponse>
    <Username>sample string 2</Username>
    <WinnerDesc>sample string 8</WinnerDesc>
  </LeaderBoardResultDto>
</ArrayOfLeaderBoardResultDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IList`1'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>