samuelorlato / golang-voting-system-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang Voting System API

A Go API that uses websockets to handle voting

Routes

Vote

GET /vote (creates a room and enter as voter)
JSON Body Params
name type data type
option required string

/vote

GET /vote/:roomId (enters in a room as voter)
JSON Body Params
name type data type
option required string

/vote

Spectate

GET /spectate (creates a room and enter as spectator)

/vote

GET /spectate/:roomId (enters in a room as spectator)

/vote