Module poll_handlers

Module poll_handlers 

Source

Structsยง

ListPollsQuery
PollStatisticsResponse
cancel_poll
Cancel a poll POST /api/v1/polls/:id/cancel
cast_poll_vote
Cast a vote on a poll POST /api/v1/polls/vote
close_poll
Close a poll manually POST /api/v1/polls/:id/close
create_poll
Create a new poll (draft status) POST /api/v1/polls
delete_poll
Delete a poll (only draft or cancelled) DELETE /api/v1/polls/:id
find_active_polls
Find active polls for a building GET /api/v1/buildings/:building_id/polls/active
get_poll
Get poll by ID GET /api/v1/polls/:id
get_poll_building_statistics
Get poll statistics for a building GET /api/v1/buildings/:building_id/polls/statistics
get_poll_results
Get poll results GET /api/v1/polls/:id/results
list_polls
List polls with pagination and filters GET /api/v1/polls?page=1&per_page=10&building_id=xxx&status=active
publish_poll
Publish a poll (change from draft to active) POST /api/v1/polls/:id/publish
update_poll
Update poll (only draft polls can be updated) PUT /api/v1/polls/:id