Introducing JsonApiable, Because Building RESTful JSON:APIs in Ruby Should Be Easier

If you are building a REST API on Ruby/Rails and decide to implement it as a JSON:API to avoid bike-shedding, chances are you are using fast_jsonapi or active_model_serializers gem to serialize your resources (if you still haven’t decided which one to use, go with fast_jsonapi). Both are geared towards serializing your resources into JSON responses, but the problem is, neither offers easy-to-use tools to consume API requests, and so you are left to write your own parsers to convert JSON:API relationships and complex attributes in, say, update requests into Rails-friendly params. That’s where JsonApiable enters the picture.
Introducing JsonApiable, Because Building RESTful JSON:APIs in Ruby Should Be Easier #ruby #rubydeveloper #rubyonrails #restful https://rubyonrails.ba/single/introducing-jsonapiable-because-building-restful-json-apis-in-ruby-should-be-easier

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles