Beyond The API is a framework created to standardize Rails APIs and make things easier.
This gem consist in various render helpers to help render JSON on common use cases like pagination and sort.
Add this line to your application's Gemfile:
gem 'beyond_the_api', '~> 0.0.1'
And then execute:
$ bundle install
Include in your application_controller.rb or whatever controller you want to use the helpers:
include BeyondTheApi::RenderHelpers
- json patterns
- meta
- model serializer helper
- current_user
- versioning
- total_count
- total_pages
- pagination
- filters
- sort
TODO
TODO
Bug reports and pull requests are welcome on GitHub at https://github.com/williamweckl/beyond_the_api.
The gem is available as open source under the terms of the MIT License.