📖 examples of payloads

This commit is contained in:
Baptiste Lemoine 2019-11-28 17:10:21 +01:00
parent cfb6b9f65b
commit 64c2ad0ee2
1 changed files with 16 additions and 18 deletions

View File

@ -44,24 +44,22 @@ Content-Type:"application/json"
```http request ```http request
POST http://127.0.0.1:8000/api/v1/poll/1/vote POST http://127.0.0.1:8000/api/v1/poll/1/vote
Content-Type:"application/json" Content-Type:"application/json"
{ {
"pseudo": "Mario Bros", "pseudo": "tktest",
"email": "MarioBros@tktest.com", "email": "testing_vote_people@tktest.com",
"votes": [{ "votes": [
{
"choice_id": 5, "choice_id": 5,
"value": "yes"
},
{
"choice_id": 6,
"value": "no" "value": "no"
}, },
{ {
"choice_id": 7, "choice_id": 6,
"value": "maybe" "value": "maybe"
}] },
{
"choice_id": 7,
"value": "yes"
}
]
} }
``` ```