Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

Raw poll makes it easy to create new polls in seconds and free and open source!

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"
}
```