Simple example of api using sinatra