POST me/submitquiz?league={league}&team={team}

take quiz .it will return some data for next validation for team creation Note: league and team can not be all empty

Request Information

Parameters

NameDescriptionAdditional information
league
league id, optional if division id is specified

Define this parameter in the request URI.

team
team id, if team id null or empty we consider it as create team
            if member not in team,we consider as join team
            if member in team,if member is player take player quiz ,if captain take captain quiz

Define this parameter in the request URI.

inDto
contains quiz id , is skip quiz and user answer

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "quiz_id": 1,
  "is_skip_quiz": true,
  "question_result": {
    "1": 2,
    "3": 4,
    "5": 6
  }
}

application/xml, text/xml

Sample:
<TakeQuizInDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input">
  <is_skip_quiz>true</is_skip_quiz>
  <question_result xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOflonglong>
      <d2p1:Key>1</d2p1:Key>
      <d2p1:Value>2</d2p1:Value>
    </d2p1:KeyValueOflonglong>
    <d2p1:KeyValueOflonglong>
      <d2p1:Key>3</d2p1:Key>
      <d2p1:Value>4</d2p1:Value>
    </d2p1:KeyValueOflonglong>
    <d2p1:KeyValueOflonglong>
      <d2p1:Key>5</d2p1:Key>
      <d2p1:Value>6</d2p1:Value>
    </d2p1:KeyValueOflonglong>
  </question_result>
  <quiz_id>1</quiz_id>
</TakeQuizInDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

an object containing all information of the user take quiz result

Response body formats

application/json, text/json

Sample:
{
  "isPassed": true,
  "correct_question_num": 2,
  "total_question_num": 3,
  "is_skip_quiz": true,
  "quiz_result_id": 5,
  "right_answers": {
    "1": 2,
    "3": 4,
    "5": 6
  },
  "show_correct_answer": true,
  "min_correct_question_num": 7
}

application/xml, text/xml

Sample:
<TakeQuizResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Output">
  <correct_question_num>2</correct_question_num>
  <isPassed>true</isPassed>
  <is_skip_quiz>true</is_skip_quiz>
  <min_correct_question_num>7</min_correct_question_num>
  <quiz_result_id>5</quiz_result_id>
  <right_answers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOflonglong>
      <d2p1:Key>1</d2p1:Key>
      <d2p1:Value>2</d2p1:Value>
    </d2p1:KeyValueOflonglong>
    <d2p1:KeyValueOflonglong>
      <d2p1:Key>3</d2p1:Key>
      <d2p1:Value>4</d2p1:Value>
    </d2p1:KeyValueOflonglong>
    <d2p1:KeyValueOflonglong>
      <d2p1:Key>5</d2p1:Key>
      <d2p1:Value>6</d2p1:Value>
    </d2p1:KeyValueOflonglong>
  </right_answers>
  <show_correct_answer>true</show_correct_answer>
  <total_question_num>3</total_question_num>
</TakeQuizResultDto>