A simple api using grape
build a docker image (on root path)
docker build -t grape-api .
and run
docker run -p 9292:9292 grape-api
curl -X POST http://localhost:9292/api/v1/people -H 'content-type: application/json' -d '{"name":"Bacon","phone": "11999999999"}'
curl -X GET http://localhost:9292/api/v1/people
curl -X GET http://localhost:9292/api/v1/people/1
curl -X DELETE http://localhost:9292/api/v1/people/32