khaosdoctor/go-vote-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.
docker run -p 80:8080 khaosdoctor/go-vote-api
The API ALWAYS listens on port 8080
GET /votes/:name
: Computes a vote to the given nameGET /votes
: List all votesGET /total
: Lists the total number of votes and the vote listThe API is concurrency-safe but not scalable since it stores all votes in local memory
docker pull khaosdoctor/go-vote-api