4 ms·
Rails-api is a gem that configures rails in a more lean and mean fashion for API usage, it doesn't handle the json serialization. Mostly rails-api disables a lo
by mbell 12y ago
Rails-api is a gem that configures rails in a more lean and mean fashion for API usage, it doesn't handle the json serialization. Mostly rails-api disables a lot of default rails features/middlewares that aren't needed when you're only building an API.
For json serialization you may want to look at Active Model Serializers[0], I found it much easier to work with than rabl, and it's also written by the rails-api group.
[0] https://github.com/rails-api/active_model_serializers https://github.com/rails-api/active_model_serializers
- steveklabnik 12y agoAMS maintainer here, I'm making a big announcement about it soon. That said, you're correct, AMS <-> RABL is the right comparison, not Rails-API <-> RABL.
- JustinAiken 12y agoWhere is this AMS announcement going to be? I'd like to watch, since I use AMS extensively (thanks for the great project!)
- steveklabnik 12y agoIt'll be on the rails-api-core mailing list: https://groups.google.com/forum/#!forum/rails-api-core https://groups.google.com/forum/#!forum/rails-api-core