Initial commit

This commit is contained in:
2025-08-20 17:28:58 +03:00
commit 19c8391208
9 changed files with 387 additions and 0 deletions

10
README.md Normal file
View File

@@ -0,0 +1,10 @@
# 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 ...]