Hello,
I've put together a webservice gem [1] - yet another Sinatra-style
HTTP JSON API builder (in about 100 lines of ruby). Why? Why not
The main "innovation" is easy dynamic loading of services e.g. use
Webservice.load_file() to get a ready-to-use web services (rack) app.
Example:
# service.rb
get '/' do
'Hello, world!'
end
and
# server.rb
require 'webservice'
App = Webservice.load_file( './service.rb' )
App.run!
and to run type
$ ruby ./server.rb
Cheers.
PS: Inspired by Almost Sinatra (Sinatra in 6 lines of ruby) [2] and
New York, New York, Nancy, Rum, Cuba, and other Sinatra-like micro
libraries.
[1] https://github.com/rubylibs/webservice
[2] https://github.com/geraldb/talks/blob/master/almost_sinatra.md