Grape API with Roar
See
Try me here. In Chrome, best viewed with the JSONView Plugin.
Run
$ bundle install
$ rackup
[2013-06-20 08:57:58] INFO WEBrick 1.3.1
[2013-06-20 08:57:58] INFO ruby 1.9.3 (2013-02-06) [x86_64-darwin11.4.2]
[2013-06-20 08:57:58] INFO WEBrick::HTTPServer#start: pid=247 port=9292
Hello World
Navigate to localhost:9292/api with a browser. This is a hypermedia API, so all links are clickable.
Hyperclient
This is a good demo to use with Hyperclient. Check out splines_endpoint_with_hyperclient_spec.rb for a complete example that retrieves, creates, updates and deletes splines.
ActiveModel
This project uses ActiveModel and defines a dummy Spline class.
ActiveRecord
Check out the with-activerecord branch for a complete example that uses ActiveRecord and a PostgreSQL database.
Mongoid
Check out the with-mongoid branch for a complete example that uses Mongoid and a MongoDB database.
Copyright and License
Copyright (c) 2014-2016 Daniel Doubrovkine
MIT License, see LICENSE for details.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
