GET v2/api/router/surveys

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:
{
  "surveyId": "sample string 1",
  "data": [
    "sample string 1",
    "sample string 2"
  ],
  "nome": "sample string 2",
  "perguntas": [
    {
      "codigo": "sample string 1",
      "pergunta": "sample string 2",
      "respostas": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      }
    },
    {
      "codigo": "sample string 1",
      "pergunta": "sample string 2",
      "respostas": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      }
    }
  ]
}

application/xml, text/xml

Sample:
<SurveyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Neocontrol.API.ViewModels">
  <data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </data>
  <nome>sample string 2</nome>
  <perguntas>
    <SurveyQuestionViewModel>
      <codigo>sample string 1</codigo>
      <pergunta>sample string 2</pergunta>
      <respostas xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </respostas>
    </SurveyQuestionViewModel>
    <SurveyQuestionViewModel>
      <codigo>sample string 1</codigo>
      <pergunta>sample string 2</pergunta>
      <respostas xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>sample string 3</d4p1:Key>
          <d4p1:Value>sample string 4</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </respostas>
    </SurveyQuestionViewModel>
  </perguntas>
  <surveyId>sample string 1</surveyId>
</SurveyViewModel>