OpenFn / adaptors

The new home for OpenFn adaptors; re-usable connectors for the most common DPGs and DPI building blocks.
GNU General Public License v3.0
4 stars 8 forks source link

ODK: support query parameters in getSubmissions #653

Closed josephjclark closed 3 days ago

josephjclark commented 1 week ago

ODK's OData endpoints support query and filter parameters to be passed to the API - see https://docs.getodk.org/central-api-odata-endpoints/#data-document (look at the request parameters in particular)

Our getSubmissions() operation should include a query parameter which supports these parameters, eg {skip: 10, orderby:"__system/submitterId asc" }.

These fields should have $ appended to the names and be safely URL encoded. hopefully undici will do the encoding for us.

We should not document the flags explicitly, just link to the ODK docs