Skip to content
Colin Higgs edited this page Mar 27, 2020 · 2 revisions

New Filter Params

Current Syntax

filter[attribute:operator]=value

Examples:

  • filter[name:eq]=superman
  • filter[name:startswith]=super
  • filter[father.name:eq]=jor-el

New operators can be registered. No way to combine filters.

Proposed Syntax

Want to combine expressions with and, or and the like.

SQL-like?

filter=(name startswith 'super') or (home_planet = 'krypton')

  • Probably needs a fair amount of URL-encoding.
  • Not the easiest to parse.

Workflows

Clone this wiki locally