mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
📖 examples of payloads
This commit is contained in:
parent
cfb6b9f65b
commit
64c2ad0ee2
34
examples.md
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…
Reference in New Issue
Block a user