A proof of concept for using Roar in Grape. This implementation doesn't do anything - Grape works with Roar out of the box, call to_json
on representers.
Add the grape
, roar
and grape-roar
gems to Gemfile. Currently requires HEAD of Grape.
gem 'grape', :git => "https://github.com/intridea/grape.git"
gem 'roar'
gem 'grape-roar'
And then execute:
$ bundle
# config.ru
require 'grape/roar'
class API < Grape::API
format :json
formatter :json, Grape::Formatter::Roar
end
Fork the project. Make your feature addition or bug fix with tests. Send a pull request. Bonus points for topic branches.
MIT License, see LICENSE for details.
(c) 2012 Daniel Doubrovkine, Art.sy