1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00
date-poll-api/examples.md
2019-11-28 11:56:06 +01:00

422 B

API example

after having setup your project and database, and having a local server running you can rest these commands

POST
http://127.0.0.1:8000/api/v1/poll/98/vote
Content-Type:"pplication/json

{
	"pseudo": "Mario Bros",
	"email": "MarioBros@tktest.com",
	"votes": [{
			"choice_id": 5,
			"value": "yes"
		},
		{
			"choice_id": 6,
			"value": "no"
		},
		{
			"choice_id": 7,
			"value": "maybe"
		}]
}