Skip to content

Requirement for entering Ploomes. A simple API on ASP.NET Core for controlling polls and counting.

Notifications You must be signed in to change notification settings

pdrok1/PollMonitor

Repository files navigation

PollMonitor

An API for creating polls and accepting votes

Methods:

/api/poll/active

Retorna uma lista de polls ativas

/api/poll/inactive

Retorna uma lista de polls inativas

/api/poll/create?question=What polling question do you want to be shown?&selectableOptionsCount=2&limitDate=2020-10-08T19:55: RequestBody: ["option 1", "some other option", "yet another option"]

Valida e cria uma poll, e a retorna. É possível passar como parâmetro o texto a ser mostrado na pergunta da poll, quantas opções os votantes podem escolher no máximo e a data de fechamento automático da poll.

/api/poll/{id} Retorna a poll com esse id

/api/vote/{id}?1=true&2=true

Vota na poll com esse {id}. No exemplo, votou na opção 1 ("option 1") e na opção 2 ("some other option")

Pedro Queiroz

About

Requirement for entering Ploomes. A simple API on ASP.NET Core for controlling polls and counting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages