POST api/WhatsTheTime

Request Information

URI Parameters

None.

Body Parameters

WhatsTheTime
NameDescriptionTypeAdditional information
UserzID

globally unique identifier

None.

TimePlayed

date

None.

UserID

string

None.

GameID

globally unique identifier

None.

TotalTime

decimal number

None.

TimeForEachTurn

Collection of decimal number

None.

Score

decimal number

None.

LevelNumber

integer

None.

MaxLevel

integer

None.

Rank

integer

None.

NoOfCorrectAnswers

integer

None.

NoOfWrongAnswers

integer

None.

Pictures

Collection of PictureClass

None.

Request Formats

application/json, text/json

Sample:
{
  "UserzID": "0ff03ccc-8a9e-4487-b94c-941d41af5c3d",
  "TimePlayed": "2024-12-15T03:08:11.437401+00:00",
  "UserID": "sample string 3",
  "GameID": "02d5313d-89b5-4a94-9b3b-e68a5a73d3e8",
  "TotalTime": 5.1,
  "TimeForEachTurn": [
    1.1,
    2.1
  ],
  "Score": 6.1,
  "LevelNumber": 7,
  "MaxLevel": 8,
  "Rank": 9,
  "NoOfCorrectAnswers": 10,
  "NoOfWrongAnswers": 11,
  "Pictures": [
    {
      "GameTime": 1.1,
      "PicID": "55d51057-54c9-4851-b9fb-df6d5f98fc51"
    },
    {
      "GameTime": 1.1,
      "PicID": "55d51057-54c9-4851-b9fb-df6d5f98fc51"
    }
  ]
}

application/xml, text/xml

Sample:
<WhatsTheTimeController.WhatsTheTime xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameAPIV3.Controllers">
  <GameID>02d5313d-89b5-4a94-9b3b-e68a5a73d3e8</GameID>
  <LevelNumber>7</LevelNumber>
  <MaxLevel>8</MaxLevel>
  <NoOfCorrectAnswers>10</NoOfCorrectAnswers>
  <NoOfWrongAnswers>11</NoOfWrongAnswers>
  <Pictures xmlns:d2p1="http://schemas.datacontract.org/2004/07/GameAPIV3.Models">
    <d2p1:PictureClass>
      <d2p1:GameTime>1.1</d2p1:GameTime>
      <d2p1:PicID>55d51057-54c9-4851-b9fb-df6d5f98fc51</d2p1:PicID>
    </d2p1:PictureClass>
    <d2p1:PictureClass>
      <d2p1:GameTime>1.1</d2p1:GameTime>
      <d2p1:PicID>55d51057-54c9-4851-b9fb-df6d5f98fc51</d2p1:PicID>
    </d2p1:PictureClass>
  </Pictures>
  <Rank>9</Rank>
  <Score>6.1</Score>
  <TimeForEachTurn xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:double>1.1</d2p1:double>
    <d2p1:double>2.1</d2p1:double>
  </TimeForEachTurn>
  <TimePlayed>2024-12-15T03:08:11.437401+00:00</TimePlayed>
  <TotalTime>5.1</TotalTime>
  <UserID>sample string 3</UserID>
  <UserzID>0ff03ccc-8a9e-4487-b94c-941d41af5c3d</UserzID>
</WhatsTheTimeController.WhatsTheTime>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.