POST game

Request Information

URI Parameters

None.

Body Parameters

GameBTO
NameDescriptionTypeAdditional information
gameid

integer

None.

maxUsers

integer

None.

entryValue

decimal number

None.

prizeValue

decimal number

None.

filled

boolean

None.

templateID

integer

None.

leaderboard

byte

None.

endDate

date

None.

fillStatusFiat

decimal number

None.

fillStatusUsers

integer

None.

userEntered

boolean

None.

cannonsGiven

integer

None.

players

Collection of GameUserBTO

None.

winnerId

integer

None.

id

integer

None.

name

string

None.

createdDate

date

None.

modifiedDate

date

None.

TS

Collection of byte

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'plndr_api.Classes.BTO.GameUserBTO'. Path 'players[0].player.activeGames'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'plndr_api.Classes.BTO.GameUserBTO'. Path 'players[0].player.activeGames'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'plndr_api.Classes.BTO.GameUserBTO' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'plndr_api.Classes.BTO.GameUserBTO' contains cycles and cannot be serialized if reference tracking is disabled.

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 'GameBTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.