{"repo":"stas/jsonapi.rb","free":true,"listed":false,"github":"https://github.com/stas/jsonapi.rb","clone":"git clone https://github.com/stas/jsonapi.rb.git","description":"Lightweight, simple and maintained JSON:API support for your next Ruby HTTP API.","language":"Ruby","stars":275,"topics":["fast-jsonapi","jsonapi","ransack","rails","api","arel","serializer","pagination","json-api","filter"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"JSONAPI.rb :electric plug: So you say you need JSON:API support in your API... - hey how did your hackathon go? - not too bad, we got Babel set up - yep… - yep. — I Am Devloper Here are some codes to help you build your next JSON:API compliable application easier and faster. But why? It's quite a hassle to setup a Ruby (Rails) web application to use and follow the JSON:API specifications. The idea is simple, JSONAPI.rb offers a bunch of modules/mixins/glue, add them to your controllers, call some methods, profit ! Main goals: No magic please No DSLs please Less code, less maintenance Good docs and test coverage Keep it up-to-date (or at least tell people this is for grabs ) The available features include: object serialization (powered by JSON:API Serializer, was fast jsonapi ) error handling (parameters, validation, generic errors) fetching of the data (support for includes and sparse fields) filtering and sorting of the data (powered by Ransack, soft-dependency) pagination support But how? Mainly by leveraging JSON:API Serializer and Ransack. Thanks to everyone who worked on these amazing projects! Sponsors I'm grateful for the following companies for supporting this project! Installation Add this line to your application's Gemfile: And then execute: $ bundle Or install it yourself as: $ gem install jsonapi.rb Usage Object serialization Collection meta Error handling Includes and sparse fields Filtering and sorting Sorting using expressions Pagination Deserialization --- To ","default_branch":null,"files":null,"tree":[],"storefront":"/r/stas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stas/jsonapi.rb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}