A set of interfaces for RESTful resource models, and a Rack adapter to expose them
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 15 commits ahead, 1 commit behind mjwillson:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib
test/functional
.gitignore
.travis.yml
Gemfile
README.md
Rakefile
TODO
doze.gemspec

README.md

Build Status Gem Version

Doze

RESTful resource-oriented API framework.

  • Hierarchical routing
  • RESTful concepts are baked in to the library, not as an afterthought
  • Content-Type negotiation
  • Simple, extendable authentication

Hello, world

require 'doze'

class HelloWorld
  include Doze::Resource
  include Doze::Serialization::Resource

  def get_data
    {:message => 'Hello, World'}
  end
end

run Doze::Application.new(HelloWorld.new)

Take a look at example/example_app.rb for a more complex version