openreferral / api-specification

This is the working repository for Open Referral's Human Services Data API protocols.
https://openreferral.readthedocs.io/en/latest/hsda/
Other
29 stars 13 forks source link

updated 'query' parameter on core models to support <field>==<value> … #52

Closed tuckerbuchy closed 7 years ago

tuckerbuchy commented 7 years ago

Currently implementing a NodeJS/Express version of this API and wanted to support filtering on the core endpoints (contacts organizations services locations) Just a suggestion for the syntax, would like input.

Probably will implement it in our project for the time being like this, and can switch to whatever is decided on.

tuckerbuchy commented 7 years ago

Example query: organization_id = 9487501 name = Hilarie Cash http://localhost:3000/contacts/?query=organization_id%3D%3D9487501&query=name%3D%3DHilarie%20Cash

tuckerbuchy commented 7 years ago

Also, heres our repo where this is being tested in: https://github.com/pg-irc/pathways/blob/master/backend/api/controllers/contacts.js