basic RESTful api using sinatra