From bd46de6b25f982e1a0d3f975971fe8014db13833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 18 Mar 2016 16:28:45 +0100 Subject: Revert "Transferring API Description file from Apiary.io" This reverts commit 169d60abc7e0ee191bfb66ecb1fbbac14ab88095. --- apiary.apib | 80 ------------------------------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 apiary.apib diff --git a/apiary.apib b/apiary.apib deleted file mode 100644 index cd355a1e..00000000 --- a/apiary.apib +++ /dev/null @@ -1,80 +0,0 @@ -FORMAT: 1A -HOST: http://polls.apiblueprint.org/ - -# wallabag - -Polls is a simple API allowing consumers to view polls and vote in them. - -## Questions Collection [/questions] - -### List All Questions [GET] - -+ Response 200 (application/json) - - [ - { - "question": "Favourite programming language?", - "published_at": "2015-08-05T08:40:51.620Z", - "choices": [ - { - "choice": "Swift", - "votes": 2048 - }, { - "choice": "Python", - "votes": 1024 - }, { - "choice": "Objective-C", - "votes": 512 - }, { - "choice": "Ruby", - "votes": 256 - } - ] - } - ] - -### Create a New Question [POST] - -You may create your own question using this action. It takes a JSON -object containing a question and a collection of answers in the -form of choices. - -+ Request (application/json) - - { - "question": "Favourite programming language?", - "choices": [ - "Swift", - "Python", - "Objective-C", - "Ruby" - ] - } - -+ Response 201 (application/json) - - + Headers - - Location: /questions/2 - - + Body - - { - "question": "Favourite programming language?", - "published_at": "2015-08-05T08:40:51.620Z", - "choices": [ - { - "choice": "Swift", - "votes": 0 - }, { - "choice": "Python", - "votes": 0 - }, { - "choice": "Objective-C", - "votes": 0 - }, { - "choice": "Ruby", - "votes": 0 - } - ] - } \ No newline at end of file -- cgit v1.2.3