POST api/Feelings/PostQuizData

Request Information

URI Parameters

None.

Body Parameters

FeelingsQuiz
NameDescriptionTypeAdditional information
UserID

globally unique identifier

Required

QuizDetail

Collection of FeelingsQuizDetail

Required

Request Formats

application/json, text/json

Sample:
{
  "UserID": "16f55448-3222-407e-aa43-5fe3129fbe97",
  "QuizDetail": [
    {
      "Emotion": 0,
      "isSuccessful": true,
      "TotalTime": 2.1,
      "isAnsweredOnFirstTry": true
    },
    {
      "Emotion": 0,
      "isSuccessful": true,
      "TotalTime": 2.1,
      "isAnsweredOnFirstTry": true
    }
  ]
}

application/xml, text/xml

Sample:
<FeelingsController.FeelingsQuiz xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameAPIV3.Controllers">
  <QuizDetail>
    <FeelingsController.FeelingsQuizDetail>
      <Emotion>Happy</Emotion>
      <TotalTime>2.1</TotalTime>
      <isAnsweredOnFirstTry>true</isAnsweredOnFirstTry>
      <isSuccessful>true</isSuccessful>
    </FeelingsController.FeelingsQuizDetail>
    <FeelingsController.FeelingsQuizDetail>
      <Emotion>Happy</Emotion>
      <TotalTime>2.1</TotalTime>
      <isAnsweredOnFirstTry>true</isAnsweredOnFirstTry>
      <isSuccessful>true</isSuccessful>
    </FeelingsController.FeelingsQuizDetail>
  </QuizDetail>
  <UserID>16f55448-3222-407e-aa43-5fe3129fbe97</UserID>
</FeelingsController.FeelingsQuiz>

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.