unicef-drp / GeoSight-OS

GeoSight Open Source
https://unicef-drp.github.io/GeoSight-OS-Documentation/
GNU Affero General Public License v3.0
7 stars 10 forks source link

[Feature Request] API - Add Code #161

Open janbur opened 9 months ago

janbur commented 9 months ago

This is the child of: https://github.com/unicef-drp/GeoSight-OS/issues/151

Current API docs: https://geosight.unicef.org/api/v1/docs/

Objective

Create a new API endpoint for adding a new Code to GeoSight. This will support batch import of codes and code lists and syncing codes / code lists lists from other platforms (e.g. UNICEF SDMX Data Warehouse: https://sdmx.data.unicef.org/overview.html. Check sample code lists from SDMX Data Warehouse: https://sdmx.data.unicef.org/items/codelist.html

Implementation

POST /api/v1/code-list/{id}/codes

meomancer commented 9 months ago

This is part of https://github.com/unicef-drp/GeoSight-OS/issues/160

Technical :

Example code:

indraneel commented 9 months ago

Given that this API endpoint/api/v1/code-list/{id}/codes has /code-list/ in the path, does that mean this issue is dependent on the creation of the code-list endpoint #159?