Jsonapi Scopes Versions Save

This gem allows you to filter and sort an ActiveRecord relation based on a request, following the JSON:API specification as closely as possible.

v0.4.1

4 years ago

v0.4.1 - 2019-09-24

Changed

  • Updating the Gemfile.lock
  • Updating readme

v0.4.0

4 years ago

v0.4.0 - 2019-09-24

Added

  • Adding Jsonapi::Include module to handle dynamic includes like so: /posts?include=comments,author

v0.3.0

4 years ago

v0.3.0 - 2019-09-16

Changed

  • Raise Jsonapi::InvalidAttributeError when attribute is invalid.

v0.2.0

4 years ago

v0.2.0 - 2019-08-01

Fixed

  • Adding condition when spliting filter_params to prevent issue.

v0.1.5

4 years ago

v0.1.5 - 2019-07-20

Changed

  • Using Array.wrap in apply_sort instead of [].flatten.
  • Adding specs on allowed sorted fields.

v0.1.4

4 years ago

v0.1.4 - 2019-07-17

Added

  • apply_filter can now handle multiple matching with a comma separated list of values: /contacts?filter[first_name]=Bruce,Peter