Simple CRUD service that can be used to build demo docker images and for kubernetes demos
There are 4 endpoints
/health -> Check if the application is running
/register?name -> Register a candidate, take query parameter name, ex - > /register?name=sandeep
/candidates -> Returns a list of registered candidated
/vote/{candidate_name} -> votes for candidate_name
/winner -> Returns the candidate with most votes
/crash -> Crashes the application
/version -> Returns the app version
This is automatically built as a docker image. To download the docker image
docker pull sandyjswl/vote-app:latest
Content type
Image
Digest
Size
20.6 MB
Last updated
almost 5 years ago
docker pull sandyjswl/vote-app