mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Revert "Transferring API Description file from Apiary.io"
This reverts commit 169d60abc7
.
This commit is contained in:
parent
169d60abc7
commit
bd46de6b25
1 changed files with 0 additions and 80 deletions
80
apiary.apib
80
apiary.apib
|
@ -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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue