https://github.com/andy-python-programmer/rawpoll
Raw poll makes it easy to create new polls in seconds and free and open source!
https://github.com/andy-python-programmer/rawpoll
poll rocket rust
Last synced: 8 months ago
JSON representation
Raw poll makes it easy to create new polls in seconds and free and open source!
- Host: GitHub
- URL: https://github.com/andy-python-programmer/rawpoll
- Owner: Andy-Python-Programmer
- Created: 2020-10-17T08:53:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T06:40:40.000Z (about 5 years ago)
- Last Synced: 2025-04-05T22:29:07.734Z (9 months ago)
- Topics: poll, rocket, rust
- Language: HTML
- Homepage: https://rawpoll.herokuapp.com
- Size: 258 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

Raw Poll
Raw poll makes it easy to create new polls in seconds and free and open source!
## Api
### Poll
1. Create
```
POST /api/poll
```
Format: `application/json`
Params:
| Name | Type | Notes |
|---------------|--------|-----------|
| `question` | String | Required. |
| `description` | String | Required. |
| `options` | Array | Required. |
Response ( If the poll was successfully created ):
```json
{
"id": "poll_id",
"status": "success"
}
```
2. Read
```
GET /api/poll/
```
If the poll was found:
```json
{
"question": "poll_question",
"description": "poll_description",
"options": {
"poll_option": 1,
"poll_option-2": 1,
...
},
}
```
If the poll was not found:
```json
{
"error": "Cannot find the poll specified!",
"status": "failure"
}
```