Project

api_engine

0.0
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
An API engine for Rails. Structure of the API is opinionated and designed to directly interface with ember-data.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Build Status Code Climate Dependency Status

An API engine for Rails. Convention over configuration. Auto generated docs (coming soon!)

You should use this gem if:

  • You want to add an API to your Rails app in just a few lines of code
  • You don't want to spend time writing controller code for your API
  • You want an API compatible with Ember Data

Installation

  1. Add gem "api_engine", "~> 0.0.1" to your gem file
  2. Generate an initializer: rails generate api_engine:config
  3. Add mount ApiEngine::Engine => "/api" to your routes file

Configuration

By default all of your models will be exposed in a bulk REST API at /api/:model_name. To expose only certain models, use the whitelist config option:

ApiEngine.configure do |config|
  config.whitelist = [:comment] # Exposes only the 'Comment' model via the API
end

Authentication

Coming soon! There is an open issue for this

Other Gems

Looking for some other resources for creating more complex APIs? Check out these gems...

Contributing

Creating an issue is good. Sending a pull request is better.

License and Copyright

Copyright 2013 Steven Faulkner

Released under the MIT License. See LICENSE.md for full text

Bitdeli Badge