GithubHelp home page GithubHelp logo

isabella232 / grape-with-roar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ruby-grape/grape-with-roar

0.0 0.0 0.0 85 KB

A demo of using Grape with Roar and some non-trivial HAL presenters.

License: MIT License

Ruby 96.67% HTML 3.33%

grape-with-roar's Introduction

Grape API with Roar

Build Status Dependency Status Code Climate

A Grape API that uses 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.

grape-with-roar's People

Contributors

dblock avatar dylanfareed avatar jcwilk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.