Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] API - Add Code #161

Open
janbur opened this issue Nov 29, 2023 · 2 comments
Open

[Feature Request] API - Add Code #161

janbur opened this issue Nov 29, 2023 · 2 comments
Labels
Back-end 🕓 3 - 4 hours It will take me between 2 hours to half a day.

Comments

@janbur
Copy link
Collaborator

janbur commented Nov 29, 2023

This is the child of: #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

  • 📒 Description:
    • Create a code of the code list
  • ⬇️ Payloads:
    • name : {unique}
    • description
    • value
  • ⬆️ Returns:
    • 201:
      • id
      • name
      • description
      • value
    • 400:
      • response error
@janbur janbur added 🕗 5 - 8 hours It will take between half a day and a full day. 🕓 3 - 4 hours It will take me between 2 hours to half a day. Back-end and removed 🕗 5 - 8 hours It will take between half a day and a full day. labels Nov 30, 2023
@indraneel
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Back-end 🕓 3 - 4 hours It will take me between 2 hours to half a day.
Projects
None yet
Development

No branches or pull requests

3 participants