From 64c2ad0ee28ed503b8a0927b9f6f4c074ed40b13 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Thu, 28 Nov 2019 17:10:21 +0100 Subject: [PATCH] :book: examples of payloads --- examples.md | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/examples.md b/examples.md index f1069d5..aa014b2 100644 --- a/examples.md +++ b/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" + } + ] } - - - ```