11 lines
729 B
Markdown
11 lines
729 B
Markdown
# PyPolls
|
|
|
|
## API endpoints
|
|
Description | Method | Endpoint
|
|
----------- | :-------: | ---------------------------------------
|
|
Create new poll | POST | /api/v1/polls/create/<choice/checkboxes>
|
|
Vote | POST, PUT | /api/v1/polls/<uuid:poll_id>?id=...<br />/api/v1/polls/<uuid:poll_id>?0=true&1=false&2=true
|
|
Get results and variants | GET | /api/v1/polls/<uuid:poll_id>
|
|
Stop poll | POST, PUT | /api/v1/stop/<uuid:poll_id>[?token=...] [Authorization: Bearer ...]
|
|
Delete poll | DELETE | /api/v1/polls/<uuid:poll_id>[?token=...] [Authorization: Bearer ...]
|