📖 examples of payloads

develop
Baptiste Lemoine 3 years ago
parent cfb6b9f65b
commit 64c2ad0ee2
  1. 34
      examples.md

@ -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"
}
]
}
```

Loading…
Cancel
Save