GET api/ContestResult/GetContestQuestionResults?contestId={contestId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
contestId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ContestQuestionResultDto
NameDescriptionTypeAdditional information
ContestId

globally unique identifier

None.

QuestionId

globally unique identifier

None.

QuestionText

string

None.

QuestionType

string

None.

DriverId

globally unique identifier

None.

TeamId

globally unique identifier

None.

ResponseText

string

None.

ContestQuestionDetails

Collection of ContestQuestionDetailDto

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ContestId": "1af7ed30-a6d7-47f2-8c6c-1c8d257f6b7a",
    "QuestionId": "0d85b6a8-43d1-41a9-8146-e085d8b22585",
    "QuestionText": "sample string 3",
    "QuestionType": "sample string 4",
    "DriverId": "96efae5e-97dc-48c0-aea4-981cee3352a4",
    "TeamId": "ccc9e244-6a0b-4d87-957c-2e8a6e6384b9",
    "ResponseText": "sample string 5",
    "ContestQuestionDetails": [
      {
        "OptionId": "748bbd5f-3b73-4ff6-ab1f-56cc4d1ce8a7",
        "OptionText": "sample string 1"
      },
      {
        "OptionId": "748bbd5f-3b73-4ff6-ab1f-56cc4d1ce8a7",
        "OptionText": "sample string 1"
      }
    ]
  },
  {
    "ContestId": "1af7ed30-a6d7-47f2-8c6c-1c8d257f6b7a",
    "QuestionId": "0d85b6a8-43d1-41a9-8146-e085d8b22585",
    "QuestionText": "sample string 3",
    "QuestionType": "sample string 4",
    "DriverId": "96efae5e-97dc-48c0-aea4-981cee3352a4",
    "TeamId": "ccc9e244-6a0b-4d87-957c-2e8a6e6384b9",
    "ResponseText": "sample string 5",
    "ContestQuestionDetails": [
      {
        "OptionId": "748bbd5f-3b73-4ff6-ab1f-56cc4d1ce8a7",
        "OptionText": "sample string 1"
      },
      {
        "OptionId": "748bbd5f-3b73-4ff6-ab1f-56cc4d1ce8a7",
        "OptionText": "sample string 1"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfContestQuestionResultDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.ContestQuestionResultModule.Model">
  <ContestQuestionResultDto>
    <ContestId>1af7ed30-a6d7-47f2-8c6c-1c8d257f6b7a</ContestId>
    <ContestQuestionDetails>
      <ContestQuestionDetailDto>
        <OptionId>748bbd5f-3b73-4ff6-ab1f-56cc4d1ce8a7</OptionId>
        <OptionText>sample string 1</OptionText>
      </ContestQuestionDetailDto>
      <ContestQuestionDetailDto>
        <OptionId>748bbd5f-3b73-4ff6-ab1f-56cc4d1ce8a7</OptionId>
        <OptionText>sample string 1</OptionText>
      </ContestQuestionDetailDto>
    </ContestQuestionDetails>
    <DriverId>96efae5e-97dc-48c0-aea4-981cee3352a4</DriverId>
    <QuestionId>0d85b6a8-43d1-41a9-8146-e085d8b22585</QuestionId>
    <QuestionText>sample string 3</QuestionText>
    <QuestionType>sample string 4</QuestionType>
    <ResponseText>sample string 5</ResponseText>
    <TeamId>ccc9e244-6a0b-4d87-957c-2e8a6e6384b9</TeamId>
  </ContestQuestionResultDto>
  <ContestQuestionResultDto>
    <ContestId>1af7ed30-a6d7-47f2-8c6c-1c8d257f6b7a</ContestId>
    <ContestQuestionDetails>
      <ContestQuestionDetailDto>
        <OptionId>748bbd5f-3b73-4ff6-ab1f-56cc4d1ce8a7</OptionId>
        <OptionText>sample string 1</OptionText>
      </ContestQuestionDetailDto>
      <ContestQuestionDetailDto>
        <OptionId>748bbd5f-3b73-4ff6-ab1f-56cc4d1ce8a7</OptionId>
        <OptionText>sample string 1</OptionText>
      </ContestQuestionDetailDto>
    </ContestQuestionDetails>
    <DriverId>96efae5e-97dc-48c0-aea4-981cee3352a4</DriverId>
    <QuestionId>0d85b6a8-43d1-41a9-8146-e085d8b22585</QuestionId>
    <QuestionText>sample string 3</QuestionText>
    <QuestionType>sample string 4</QuestionType>
    <ResponseText>sample string 5</ResponseText>
    <TeamId>ccc9e244-6a0b-4d87-957c-2e8a6e6384b9</TeamId>
  </ContestQuestionResultDto>
</ArrayOfContestQuestionResultDto>