-
Notifications
You must be signed in to change notification settings - Fork 34
choices index
dmitrig edited this page Sep 14, 2010
·
1 revision
Description: Return collection of chioces in order by descending score
Format: XML
URL: GET /questions/7/choices.xml?limit=2&offset=3
Parameters:
- limit: optional, int: How many choices to return
- offset: optional, int: Index into collection of choices from which to start
- include_inactive: optional, bool: Whether returned collection should include deactivated choices
Returns:
Array of choice objects
<?xml version="1.0" encoding="UTF-8"?>
<choices type="array">
<choice>
<active type="boolean">true</active>
<created-at type="datetime">2010-07-06T23:35:08+00:00</created-at>
<data nil="true"></data>
<id type="integer">20</id>
<losses type="integer">0</losses>
<score type="float">50.0</score>
<wins type="integer">0</wins>
<user-created type="boolean">true</user-created>
</choice>
<choice>
<active type="boolean">true</active>
<created-at type="datetime">2010-07-06T23:34:11+00:00</created-at>
<data>NEWNEW3</data>
<id type="integer">19</id>
<losses type="integer">0</losses>
<score type="float">50.0</score>
<wins type="integer">0</wins>
<user-created type="boolean">true</user-created>
</choice>
</choices>
Notes:
- none