POST api/NumberLand/PostQuizGameData

Request Information

URI Parameters

None.

Body Parameters

NumberLandQuizDataPostModel
NameDescriptionTypeAdditional information
UserID

globally unique identifier

Required

QuizDetails

Collection of NumberQuizDetailModel

Required

AvgFPS

decimal number

Required

Range: inclusive between 0 and 5000

MinFPS

decimal number

Required

Range: inclusive between 0 and 5000

MaxFPS

decimal number

Required

Range: inclusive between 0 and 5000

FPSBelow19Time

decimal number

Required

Range: inclusive between 0 and 5000

FPSBetween19And30Time

decimal number

Required

Range: inclusive between 0 and 5000

FPSAbove30Time

decimal number

Required

Range: inclusive between 0 and 5000

Request Formats

application/json, text/json

Sample:
{
  "UserID": "c7068507-2046-4a76-9b6a-e0bb2785e97f",
  "QuizDetails": [
    {
      "ItemDetails": 1,
      "TotalTime": 2.1,
      "TotalTimeSpent": 3.1,
      "LivesRemaining": 4,
      "TotalLives": 5,
      "QuizPassed": true,
      "QuizType": 0
    },
    {
      "ItemDetails": 1,
      "TotalTime": 2.1,
      "TotalTimeSpent": 3.1,
      "LivesRemaining": 4,
      "TotalLives": 5,
      "QuizPassed": true,
      "QuizType": 0
    }
  ],
  "AvgFPS": 2.1,
  "MinFPS": 3.1,
  "MaxFPS": 4.1,
  "FPSBelow19Time": 5.1,
  "FPSBetween19And30Time": 6.1,
  "FPSAbove30Time": 7.1
}

application/xml, text/xml

Sample:
<NumberLandQuizDataPostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameAPIV3.Controllers.MongoDB.ECDGames">
  <AvgFPS>2.1</AvgFPS>
  <FPSAbove30Time>7.1</FPSAbove30Time>
  <FPSBelow19Time>5.1</FPSBelow19Time>
  <FPSBetween19And30Time>6.1</FPSBetween19And30Time>
  <MaxFPS>4.1</MaxFPS>
  <MinFPS>3.1</MinFPS>
  <QuizDetails>
    <NumberQuizDetailModel>
      <ItemDetails>1</ItemDetails>
      <LivesRemaining>4</LivesRemaining>
      <QuizPassed>true</QuizPassed>
      <QuizType>Counting</QuizType>
      <TotalLives>5</TotalLives>
      <TotalTime>2.1</TotalTime>
      <TotalTimeSpent>3.1</TotalTimeSpent>
    </NumberQuizDetailModel>
    <NumberQuizDetailModel>
      <ItemDetails>1</ItemDetails>
      <LivesRemaining>4</LivesRemaining>
      <QuizPassed>true</QuizPassed>
      <QuizType>Counting</QuizType>
      <TotalLives>5</TotalLives>
      <TotalTime>2.1</TotalTime>
      <TotalTimeSpent>3.1</TotalTimeSpent>
    </NumberQuizDetailModel>
  </QuizDetails>
  <UserID>c7068507-2046-4a76-9b6a-e0bb2785e97f</UserID>
</NumberLandQuizDataPostModel>

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.