A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ruby-grape/grape-with-roar below:

ruby-grape/grape-with-roar: A demo of using Grape with Roar and some non-trivial HAL presenters.

A Grape API that uses Roar.

Try me here. In Chrome, best viewed with the JSONView Plugin.

$ 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

Navigate to localhost:9292/api with a browser. This is a hypermedia API, so all links are clickable.

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.

This project uses ActiveModel and defines a dummy Spline class.

Check out the with-activerecord branch for a complete example that uses ActiveRecord and a PostgreSQL database.

Check out the with-mongoid branch for a complete example that uses Mongoid and a MongoDB database.

Copyright (c) 2014-2016 Daniel Doubrovkine

MIT License, see LICENSE for details.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4