GET me/views/takequiz?league={league}&team={team}
get view model for take quiz , which contains all information to generate a page for take quiz in team creation
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
league | league id, optional if team 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. |
Response Information
an object containing all information to generate a page for take quiz
Response body formats
application/json, text/json
Sample:
{ "id": 1, "instruction": "sample string 2", "name": "sample string 3", "rules": [ { "name": "sample string 1", "url": "sample string 2" }, { "name": "sample string 1", "url": "sample string 2" }, { "name": "sample string 1", "url": "sample string 2" } ], "video": "sample string 4", "questions": { "1": { "id": 1, "text": "sample string 2", "answers": { "1": { "id": 1, "text": "sample string 2" }, "2": { "id": 1, "text": "sample string 2" }, "3": { "id": 1, "text": "sample string 2" } } }, "2": { "id": 1, "text": "sample string 2", "answers": { "1": { "id": 1, "text": "sample string 2" }, "2": { "id": 1, "text": "sample string 2" }, "3": { "id": 1, "text": "sample string 2" } } }, "3": { "id": 1, "text": "sample string 2", "answers": { "1": { "id": 1, "text": "sample string 2" }, "2": { "id": 1, "text": "sample string 2" }, "3": { "id": 1, "text": "sample string 2" } } } }, "show_skip_button": true }
application/xml, text/xml
Sample:
<TakeQuizVMDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Output"> <id>1</id> <instruction>sample string 2</instruction> <name>sample string 3</name> <questions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfintQuizQuestionDtoJzm6o71u> <d2p1:Key>1</d2p1:Key> <d2p1:Value> <answers> <d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:Key>1</d2p1:Key> <d2p1:Value> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:Key>2</d2p1:Key> <d2p1:Value> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:Key>3</d2p1:Key> <d2p1:Value> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> </answers> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionDtoJzm6o71u> <d2p1:KeyValueOfintQuizQuestionDtoJzm6o71u> <d2p1:Key>2</d2p1:Key> <d2p1:Value> <answers> <d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:Key>1</d2p1:Key> <d2p1:Value> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:Key>2</d2p1:Key> <d2p1:Value> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:Key>3</d2p1:Key> <d2p1:Value> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> </answers> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionDtoJzm6o71u> <d2p1:KeyValueOfintQuizQuestionDtoJzm6o71u> <d2p1:Key>3</d2p1:Key> <d2p1:Value> <answers> <d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:Key>1</d2p1:Key> <d2p1:Value> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:Key>2</d2p1:Key> <d2p1:Value> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> <d2p1:Key>3</d2p1:Key> <d2p1:Value> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionAnswerDtoJzm6o71u> </answers> <id>1</id> <text>sample string 2</text> </d2p1:Value> </d2p1:KeyValueOfintQuizQuestionDtoJzm6o71u> </questions> <rules> <RuleDto> <name>sample string 1</name> <url>sample string 2</url> </RuleDto> <RuleDto> <name>sample string 1</name> <url>sample string 2</url> </RuleDto> <RuleDto> <name>sample string 1</name> <url>sample string 2</url> </RuleDto> </rules> <show_skip_button>true</show_skip_button> <video>sample string 4</video> </TakeQuizVMDto>