Closed (fixed)
Project:
JSON:API
Version:
8.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Sep 2016 at 05:39 UTC
Updated:
19 Jan 2017 at 06:54 UTC
Jump to comment: Most recent
#2725725: [FEATURE] Add support for filtering collections and #2730513: [FEATURE] Add filter syntax shortcut define our filtering strategies and interactions. These are not properly documented anywhere. We should create proper documentation for them so:
Write the documentation as a JSON API extension and have Drupal support it out of the box.
NOTE: JSON API extensions have been under maintenance for a long while. We can probably write the documentation first and re-format it as a JSON API extension later on.
Comments
Comment #2
e0ipsoIt's worth noting that the existence of #2786945: Examples for more advanced queries. may be proof that we need this, and that we need to have better examples in it.
Comment #3
e0ipsoI will work on this next.
Comment #4
e0ipsoThis is the first draft. PRs are welcome: https://gist.github.com/e0ipso/efcc4e96ca2aed58e32948e4f70c2460
Comment #5
gabesullice@e0ipso: I've forked and updated your gist. I've just made some minor spelling and grammar adjustments and included/reorganized the complex property ID examples.
You can see the diff here:
https://gist.github.com/gabesullice/5c2a2ab5e29cff30bbae211d6555b513/rev...
Comment #6
gabesulliceI have a few higher level suggestions:
IS NULLandIS NOT NULLmay not have meaning for certain API implementations. That is, it may be impossible to have null properties in non-Drupal backendsComment #7
gabesulliceComment #8
gabesullice@e0ipso I've revised my gist according to my suggestions above. I have not added resource examples or changed fancy filters.
I have one more concern:
I'm not sure how we currently handle this, but it's kind of ambiguous. I feel like we should either assign these to the root group or ignore it. But not make it an implementation decision.
Comment #9
e0ipsohttps://gist.github.com/e0ipso/efcc4e96ca2aed58e32948e4f70c2460 was updated with the latest changes.
Comment #10
e0ipsoI linked this in the JSON API forums: http://discuss.jsonapi.org/t/share-propose-a-filtering-strategy/257/21?u...