I wrote a Ruby application using the Sinatra framework, it comes with simple database model and a couple services: one to get a list of all elements, and another to fetch one by providing their ID. The results are returned as a JSON response.
Read more...