Example of a microservice written in Ruby, with the Sinatra framework.
Execute the microservice container with the following command :
docker run -ti -p 8080:80 msagency/msa-template-ruby
- /hello-world : returns {"message":"Hello, World !"}
- /ms/version : returns the version number
- /ms/name : returns the name
- /ms/readme.md : returns the readme (this file)
- /ms/readme.html : returns the readme as html
- /swagger/swagger.json : returns the swagger api documentation
- /swagger/#/ : returns swagger-ui displaying the api documentation
- /nginx/stats.json : returns stats about Nginx
- /nginx/stats.html : returns a dashboard displaying the stats from Nginx
A project by the Microservices Agency.