📖 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
POST http://127.0.0.1:8000/api/v1/poll/1/vote
Content-Type:"application/json"
{
"pseudo": "Mario Bros",
"email": "MarioBros@tktest.com",
"votes": [{
"choice_id": 5,
"value": "yes"
},
{
"choice_id": 6,
"value": "no"
},
{
"choice_id": 7,
"value": "maybe"
}]
"pseudo": "tktest",
"email": "testing_vote_people@tktest.com",
"votes": [
{
"choice_id": 5,
"value": "no"
},
{
"choice_id": 6,
"value": "maybe"
},
{
"choice_id": 7,
"value": "yes"
}
]
}
```