4 ms·
Why was this even created? ActiveModelSerializers or Rabl works just fine
by samgranieri 12y ago
Why was this even created? ActiveModelSerializers or Rabl works just fine
- Glyptodon 12y agoThe reason this project (and many others like it) exist is pretty obvious: Lots of people have to build different kinds APIs using rails, get some experience with Rails, discover it sucks for building APIs out of the box (to much anti-DRY repetition, doesn't deal with auth/permission dichotomy well), and then proceed to roll their own API layer/Auth layer/Permission layer because either: a) information on existing solutions is hard to find/not obvious or otherwise in the world of unknowns to the author or b) existing solutions are too generalized or otherwise structured in ways that don't work for whatever real world particular business cases. I ran into this with permissions in my current project. Nothing obvious in my realm of knowledge fit (sometimes I suspect this happens because projects only advertise their basic features clearly). So I now have a massive custom permission layer. Sometimes you also end up with things like this by accident - you need one thing, it's not worth going whole hog to begin with, but then suddenly stuff gets tacked on until you have a whole system you never set out to build.