getodk / central

ODK Central is a server that is easy to use, very fast, and stuffed with features that make data collection easier. Contribute and make the world a better place! ✨🗄✨
https://docs.getodk.org/central-intro/
Apache License 2.0
125 stars 151 forks source link

Repeated subgroups in OData? #74

Closed florianm closed 5 years ago

florianm commented 5 years ago

Is there any way of accessing the data of repeated groups through the OData feed?

I can see the main form under /Submissions, but so far I couldn't discover any link to groups in both the metadata or the form data.

Any pointers would be greatly appreciated!

florianm commented 5 years ago

Found it: Metadata > DataServices > Schema > two EntityType, one with attribute "Submissions", one with "Submissions.taxon_encounter" - those work as postfixes for the .svc URL.

issa-tseng commented 5 years ago

yup! the odata service document serves as a kind of local service directory:

https://odkcentral.docs.apiary.io/#reference/odata-endpoints/odata-form-service/service-document

(edit: oops, the metadata document [which is also useful] is a little different, giving schemas and types)

florianm commented 5 years ago

Thanks - got it to work: https://dbca-wa.github.io/ruODK/articles/example.html

One suggestion: link that fantastic apiary.io site prominently in Central's OData popup - I got stuck in proprietary Excel/PowerBI tarpits before I discovered apiary through the ODK docs.

issa-tseng commented 5 years ago

filed!