rails_api_base icon indicating copy to clipboard operation
rails_api_base copied to clipboard

Replace jbuilder

Open MaicolBen opened this issue 7 years ago • 2 comments
trafficstars

Check jb, it's considered faster than jbuilder

Another alternative faster and cleaner is fast_jsonapi which is based on serializers, so it's like having views + decorators in the same file.

Feel free to close this issue if none of these gems is a good replacement.

MaicolBen avatar Jul 03 '18 19:07 MaicolBen

Moving this issue forward, what do you think about using json:api as the standard for our API responses?

Among several implementations, fast_jsonapi has been widely accepted by the community. Active Model Serializers is the rails' generic implementation of serializers, with the json:api adapter they provide support for this standard though it's time-benchmarked poorly.

Take into account that this change is not only about improving our response times, but also to provide a standard way to respond in our API endpoints.

What do you think setting up fast_jsonapi in this template?

juanmanuelramallo avatar Feb 26 '20 17:02 juanmanuelramallo

the gem fast_jsonapi from Netflix is no longer maintained. The recommended active fork is here.

megatux avatar Aug 30 '21 18:08 megatux