GET api/v3/Polls/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
DbPollModelName | Description | Type | Additional information |
---|---|---|---|
Question | string |
None. |
|
Options | Collection of string |
None. |
|
OptionImageUrls | Collection of string |
None. |
|
Description | string |
None. |
|
DisplayPollResult | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Question": "sample string 1", "Options": [ "sample string 1", "sample string 2" ], "OptionImageUrls": [ "sample string 1", "sample string 2" ], "Description": "sample string 2", "DisplayPollResult": true }
text/html
Sample:
{"Question":"sample string 1","Options":["sample string 1","sample string 2"],"OptionImageUrls":["sample string 1","sample string 2"],"Description":"sample string 2","DisplayPollResult":true}
text/xml
Sample:
<DbPollModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShotClassCore.Models"> <Description>sample string 2</Description> <DisplayPollResult>true</DisplayPollResult> <OptionImageUrls xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </OptionImageUrls> <Options xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Options> <Question>sample string 1</Question> </DbPollModel>