POST api/ai/GetPoll

Request Information

URI Parameters

None.

Body Parameters

GetPollInput
NameDescriptionTypeAdditional information
PollId

integer

None.

FromDate

string

None.

ToDate

string

None.

GroupById

integer

None.

FlightRoute

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PollId": 1,
  "FromDate": "sample string 1",
  "ToDate": "sample string 2",
  "GroupById": 1,
  "FlightRoute": "sample string 3"
}

application/xml, text/xml

Sample:
<Common.GetPollInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SurveyApi.Models">
  <FlightRoute>sample string 3</FlightRoute>
  <FromDate>sample string 1</FromDate>
  <GroupById>1</GroupById>
  <PollId>1</PollId>
  <ToDate>sample string 2</ToDate>
</Common.GetPollInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetPollInput'.

Response Information

Resource Description

ResponseModel
NameDescriptionTypeAdditional information
Successful

boolean

None.

Status

integer

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Successful": true,
  "Status": 2,
  "Message": "sample string 3",
  "Data": {}
}

application/xml, text/xml

Sample:
<Common.ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SurveyApi.Models">
  <Data />
  <Message>sample string 3</Message>
  <Status>2</Status>
  <Successful>true</Successful>
</Common.ResponseModel>