Hacker News new | ask | show | jobs
by urvader 4109 days ago
We have used this syntax for url filters, works surpricingly well:

/v1/movies?year>=2011&artist!=cage

meaning - to add more meaning to the parameters in the query string, just add a suffix to the fieldname ><!~ etc. Before using the query, just filter them out. To add an array of options, just add the same field twice or use comma in the value:

/v1/movies?year>=2011&artist!=cage&name=the+rock,face+off