-
Notifications
You must be signed in to change notification settings - Fork 13
Schema Filter Parameter (fields=) #49
Comments
I think there are actually two questions here. The same syntax might handle both, but worth calling them out:
@kinlane it would be awesome if you could share out any models of how other highly-scaled APIs are handling this question w/ specifics... |
Took at least a stab at this: |
You rock @tuckerbuchy -- The suggestion is solid, and will include in strategy guidance. Your approach to recommending for the road map solid too. Refreshing. |
@kinlane Thanks! Really liking the OpenReferral project thus far. Hope to keep in the loop with things! |
This issues span schema and data filtering. In v1.2 the only schema filtering will be HSDS (simple) or /complete. With more usage data I will consider a solution in future versions for everything in between. Regarding data filtering (ie. which fields to search for which values), I will be accepting @tuckerbuchy pull request #57 making query into array, as it is simple, concise, and reflects wider standards. Once challenge. How do you specific core resource fields, as well as sub resources fields. I will be making more recommendations on this after I play with in prototype. Ideally, the entire field surface area is represented. |
To allow for schema filtering I am adding two properties:
This will allow for the user to choose which fields they want in the response, as well as what resources. If fields is left empty it will return all fields. |
Adding a parameter for filtering the schema.
Providing comma separated list of fields, and sub-resources.
Suggesting we call it fields=
The text was updated successfully, but these errors were encountered: