JSON API Filtering Standards for More Complex Requests

I am writing a REST api using ruby ​​on rails. I use json api as a guide for the standards used in creating api.

I am trying to find a better way to use filtering in GET requests. The json api recommendations for filtering include only what exactly matches. eg.

GET /comments?filter[post]=1

How can I filter more than non-equal, for example, contains, etc.?

I have searched a lot for Google results, but there seems to be no standard for the best way to filter. There are several suggestions, like this one .

I am looking for a solid specification or standard that I can refer specifically to filtering for my api, since the json api specification is very limited when it comes to filtering.

+4
source share

Source: https://habr.com/ru/post/1662970/


All Articles