0.08
No release in over 3 years
Low commit activity in last 3 years
There's a lot of open issues
Nice type and params for temporary JSONAPI support.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

>= 4, < 6
 Project Readme

Restful::Jsonapi

A temporary monkeypatch for JSONAPI support, both in request payload, and serializing the type without a namespace.

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'restful-jsonapi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install restful-jsonapi

Usage

class MovieTypesController < ApplicationController

  ...
 
  private

  def movie_type_params
    restify_param(:movie_type).require(:movie_type).permit(
      :id,
      :name,
      created_user: [
        :id,
        :email
      ]
  end
end

Contributing

  1. Fork it ( https://github.com/[my-github-username]/restful-jsonapi/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request