You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add JSON format option for form submissions in ODK Collect Extension and Send the response to custom server
Project Details
Add JSON format option for form submissions in ODK Collect Extension and Send response to custom server
Duration
6 Weeks
Complexity
High
Skills Required
Java, Kotlin, Android Development
Mentor
@charanpreet-samagra
Project Size
Medium
Description
ODK Collect is an open-source Android app used for survey-based data gathering, replacing traditional paper forms. It offers various question and answer types and is designed to function offline. ODK Collect Extension is a set of tools built on top of ODK Collect that allows developers to integrate ODK Collect into their own Android applications, customizing its functionality to meet their specific needs.
Currently, when a form is submitted in the ODK Collect extension, it is only sent in XML format to the ODK Aggregate or central server. The goal of this project is to enhance the library by adding the ability to generate form submissions in JSON format as well. This will provide greater flexibility to users, allowing the main module to decide how to handle the output.
Additionally, the project aims to enable the ODK Collect Extension to send form responses to a custom server instead of ODK Aggregate. This will be achieved by introducing a configuration option in the settings.json file, allowing users to specify the custom server endpoint. The submission to the custom server should be performed via a configurable POST request, and the settings.json file should support authentication using an auth token for communication with the custom server.
Milestones
Understanding the existing ODK Collect Extension functionality
Familiarizing with the codebase and architecture
Adding JSON format option for form submissions
Implementing configurable custom server submission in settings.json
Testing and validating the JSON format and custom server submission
Updating the documentation to reflect the new functionality
Acceptance Criteria
The ODK Collect Extension library is updated to support form submissions in JSON format.
The existing option to submit in XML format to the ODK server continues to work parallelly and can be controlled via a settings key in settings.json.
The JSON format option for form submissions is fully functional and tested for accuracy and reliability.
The settings.json file includes a configuration option for specifying a custom server endpoint for form submissions.
Form submissions to the custom server are performed using a configurable POST request, with support for authentication using an auth token.
The code should be validated by creating proper unit tests.
The documentation is updated to provide clear instructions on how to utilize the JSON format option and configure the custom server submission.
Stretch Goals
Implementation of additional formats like CSV.
Additional Information
This issue is nominated for the Code for GovTech (C4GT) 2023 edition, which aims to create a community of developers contributing to global Digital Public Goods. More information about C4GT can be found at https://codeforgovtech.in/.
The text was updated successfully, but these errors were encountered:
Hi, I would like to contribute to this. May I know how can I get started? By the way, I'm also submitting it on C4GT. But I would love to contribute anyway.
Skills I Have: Android Development using Android Studio with Java.
Add JSON format option for form submissions in ODK Collect Extension and Send the response to custom server
Project Details
Add JSON format option for form submissions in ODK Collect Extension and Send response to custom server
Duration
6 Weeks
Complexity
High
Skills Required
Java, Kotlin, Android Development
Mentor
@charanpreet-samagra
Project Size
Medium
Description
ODK Collect is an open-source Android app used for survey-based data gathering, replacing traditional paper forms. It offers various question and answer types and is designed to function offline. ODK Collect Extension is a set of tools built on top of ODK Collect that allows developers to integrate ODK Collect into their own Android applications, customizing its functionality to meet their specific needs.
Currently, when a form is submitted in the ODK Collect extension, it is only sent in XML format to the ODK Aggregate or central server. The goal of this project is to enhance the library by adding the ability to generate form submissions in JSON format as well. This will provide greater flexibility to users, allowing the main module to decide how to handle the output.
Additionally, the project aims to enable the ODK Collect Extension to send form responses to a custom server instead of ODK Aggregate. This will be achieved by introducing a configuration option in the
settings.json
file, allowing users to specify the custom server endpoint. The submission to the custom server should be performed via a configurable POST request, and thesettings.json
file should support authentication using an auth token for communication with the custom server.Milestones
Acceptance Criteria
settings.json
.settings.json
file includes a configuration option for specifying a custom server endpoint for form submissions.Stretch Goals
Additional Information
This issue is nominated for the Code for GovTech (C4GT) 2023 edition, which aims to create a community of developers contributing to global Digital Public Goods. More information about C4GT can be found at https://codeforgovtech.in/.
The text was updated successfully, but these errors were encountered: