Skip to content

samuelorlato/golang-voting-system-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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