GET directory/get-questions-list

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of QuestionsDto
NameDescriptionTypeAdditional information
QuestionId

integer

None.

Question

string

None.

Answers

Collection of QuestionAnswer

None.

QuestionType

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "QuestionId": 1,
    "Question": "sample string 2",
    "Answers": [
      {
        "Id": 1,
        "Answer": "sample string 2",
        "Weight": 3
      },
      {
        "Id": 1,
        "Answer": "sample string 2",
        "Weight": 3
      }
    ],
    "QuestionType": 1
  },
  {
    "QuestionId": 1,
    "Question": "sample string 2",
    "Answers": [
      {
        "Id": 1,
        "Answer": "sample string 2",
        "Weight": 3
      },
      {
        "Id": 1,
        "Answer": "sample string 2",
        "Weight": 3
      }
    ],
    "QuestionType": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfQuestionsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DrAhmedElMasryApi.Dto">
  <QuestionsDto>
    <Answers>
      <QuestionAnswer>
        <Answer>sample string 2</Answer>
        <Id>1</Id>
        <Weight>3</Weight>
      </QuestionAnswer>
      <QuestionAnswer>
        <Answer>sample string 2</Answer>
        <Id>1</Id>
        <Weight>3</Weight>
      </QuestionAnswer>
    </Answers>
    <Question>sample string 2</Question>
    <QuestionId>1</QuestionId>
    <QuestionType>1</QuestionType>
  </QuestionsDto>
  <QuestionsDto>
    <Answers>
      <QuestionAnswer>
        <Answer>sample string 2</Answer>
        <Id>1</Id>
        <Weight>3</Weight>
      </QuestionAnswer>
      <QuestionAnswer>
        <Answer>sample string 2</Answer>
        <Id>1</Id>
        <Weight>3</Weight>
      </QuestionAnswer>
    </Answers>
    <Question>sample string 2</Question>
    <QuestionId>1</QuestionId>
    <QuestionType>1</QuestionType>
  </QuestionsDto>
</ArrayOfQuestionsDto>