1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
FORMAT: 1A
HOST: http://polls.apiblueprint.org/
# Polls
Polls is a simple API allowing consumers to view polls and vote in them.
# Polls API Root [/]
## Group Question
Resources related to questions in the API.
## Question [/questions/{question_id}]
+ Parameters
+ question_id: 1 (number, required) - ID of the Question in form of an integer
+ Attributes
+ question: `Favourite programming language?` (required)
+ published_at: `2014-11-11T08:40:51.620Z` - An ISO8601 date when the question was published
+ choices (array[Choice], required) - An array of Choice objects
+ url: /questions/1
### View a Questions Detail [GET]
+ Response 200 (application/json)
+ Attributes (Question)
### Delete a Question [DELETE]
+ Relation: delete
+ Response 204
|