Skip to content

Add support to filter and sort

Compare
Choose a tag to compare
@tiagopog tiagopog released this 04 Apr 15:56
· 321 commits to master since this release

Now supporting:

  • Filter:
    • Filter records via filter query string param;
    • Options to avoid filtering: jsonapi_render collection, options: { filter: false };
    • Access filter params via: filter_params in controllers.
  • Sort:
    • Sort records via sort query string param;
    • Sort is possible for two kind of objects: ActiveRecord_Relation and Array;
    • Access sort params via: sort_params in controllers.
  • Pagination for ActiveRecord_Relation and Array objects.

Fixes:

  • Exception handling;
  • Pagination count.