caprese
caprese copied to clipboard
An opinionated Rails library for creating JSONAPI servers that lets you focus on customizing the behavior of your endpoints rather than the dirty work of setting them up
Remove `before_query`/`after_query` callbacks in controllers, because `before_action` and `after_action` are more accurate
## Story As a developer, I want to be able to access relationship data, like for `/data/relationships/transactions/data`, but like this: ``` transactions_data # returns nil transactions_data! # fails with error...
Add logic to error class that checks if error code is relevant to length, and if it is, then render `too_big.one` and `too_big.other`, etc. so you can customize singular/plural messaging