FormList endpoints ************************* Implements OpenRosa API |FormListAPI| .. |FormListAPI| raw:: html here GET a list of forms ------------------- These endpoints provide a discovery mechanism for returning the set of forms available for download. The forms are filtered based upon the user's identity, where: - ``form_pk`` - is the identifying number for a specific form - ``user_name`` - username parameter allows filtering of forms to those owned by the user .. raw:: html
    POST /formList
Example ^^^^^^^ :: curl -X GET https://api.ona.io/formList Response: :: form_id name 202006121145 md5:965fad0dbad4bb708d18abe77fcfe358 https://api.ona.io/user_name/forms/form_pk/form.xml testerform testerform 201904231241 md5:a023b3535b7b593de1e9ad075e9e21e6 https://api.ona.io/user_name/forms/form_pk/form.xml https://api.ona.io/user_name/xformsManifest/1620 Retreive forms within a project ------------------------------- This is an endpoint that implements the ability to retrieve forms within a specific project. The forms are filtered based on the project id. GET /projects//formList **Pass project pk** Example ^^^^^^^ :: curl -X GET https://api.ona.io/projects//formList Filter formlist by ``project_pk`` Response: :: form_id name 202006121145 md5:965fad0dbad4bb708d18abe77fcfe358 https://api.ona.io/user_name/forms/form_pk/form.xml testerform testerform 201904231241 md5:a023b3535b7b593de1e9ad075e9e21e6 https://api.ona.io/user_name/forms/form_pk/form.xml https://api.ona.io/user_name/xformsManifest/1620 Retreive a single form ---------------------- There a multiple endpoints that implement the ability to retrieve a Single XForm; The forms are divided by the filters they support: GET ///formList **Pass username and form pk** Example ^^^^^^^ :: curl -X GET https://api.ona.io///formList Filter formlist by ``user_name`` and ``form_pk`` Response: :: form_id name 202006121145 md5:965fad0dbad4bb708d18abe77fcfe358 https://api.ona.io/user_name/forms/form_pk/form.xml GET /enketo//formList **Use enketo/ endpoint** Example ^^^^^^^ :: curl -X GET https://api.ona.io/enketo//formList Filter formlist by ``user_name`` and ``form_pk``, allowing for access to formlist by annonymous users Response: :: form_id name 202006121145 md5:965fad0dbad4bb708d18abe77fcfe358 https://api.ona.io/user_name/forms/form_pk/form.xml GET /forms//formList **Use forms/ endpoint** Example ^^^^^^^ :: curl -X GET https://api.ona.io/forms//formList Filter formlist by ``form_pk``, allowing retrival of a single XForm Response: :: form_id name 202006121145 md5:965fad0dbad4bb708d18abe77fcfe358 https://api.ona.io/user_name/forms/form_pk/form.xml GET /enketo-preview//formList **Use enketo-preview/ endpoint** Example ^^^^^^^ :: curl -X GET https://api.ona.io/enketo-preview//formList Filter formlist by ``user_name`` and ``form_pk``, allowing for access to formlist by users without can-submit priviledges Response: :: form_id name 202006121145 md5:965fad0dbad4bb708d18abe77fcfe358 https://api.ona.io/user_name/forms/form_pk/form.xml