Skip to content

khaosdoctor/go-vote-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go voting api

A complete simple voting API in 5MB

This docker image is intended to be a simple voting API, ReST concepts and good practices were intentionally left aside.

Running

docker run -p 80:8080 khaosdoctor/go-vote-api

The API ALWAYS listens on port 8080

Routes

  • GET /votes/:name: Computes a vote to the given name
  • GET /votes: List all votes
  • GET /total: Lists the total number of votes and the vote list

The API is concurrency-safe but not scalable since it stores all votes in local memory

About

Go example voting API

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published