All Projects → Netflix → Restful Jsonapi

Netflix / Restful Jsonapi

Licence: mit
JSONAPI support, both in request parameters, and serialization.

Programming Languages

ruby
36898 projects - #4 most used programming language

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].