Submitting filled up form to ODKAggregate server

Dear All,

We are making a hybrid app where we are keeping maximum functionality of
ODK Collect. I have successfully authenticated to aggregate serve and able
to get the forms.

The problem I am facing is, I don't know to which URL I should submit the
form. Will I send the data in JSON object in post request?

Where can I find the URL to submit the particular form data?

Thank you.

The OpenRosa spec describes this interaction:
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI

Note that you need to include custom headers on the requests:
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaRequest

The Form Submisison and Form Discovery APIs are the two APIs of interest.

The server accepts Form Discovery on the /formList URL.
And accepts Form Submission on the /submission URL.

If you do not specify the required custom headers, the /formList URL
returns an older response format: https://opendatakit.appspot.com/formList
To better support debugging using a browser, we provide the newer Form
Discovery response -- even if you do not specify the required headers --
via https://opendatakit.appspot.com/xformsList That is NOT the mechanism
that ODK Collect uses -- it uses the /formList URL and supplies the
expected and required headers.

ยทยทยท On Fri, Nov 13, 2015 at 12:13 AM, Ratikanta Pradhan wrote:

Dear All,

We are making a hybrid app where we are keeping maximum functionality of
ODK Collect. I have successfully authenticated to aggregate serve and able
to get the forms.

The problem I am facing is, I don't know to which URL I should submit the
form. Will I send the data in JSON object in post request?

Where can I find the URL to submit the particular form data?

Thank you.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com