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
Create a new API endpoint for adding a new indicator to GeoSight. This will support batch import of indicators e.g. from another platform or another GeoSight instance.
Implementation
POST /api/v1/indicators/
📒 Description:
Create an indicator.
⬇️ Payload:
name (string),
description (string),
source (string),
short_code (string),
category (string),
units (string),
type (int, float, category),
value_min (for int and float types),
value_max (for int and float types),
code_list_id (for "category" type only)
⬆️ Returns:
201:
name (string),
description (string),
source (string),
short_code (string),
category (string),
units (string),
type (int, float, category),
value_min (for int and float types),
value_max (for int and float types),
code_list_id (for "category" type only)
400:
response error
PUT /api/v1/indicators/{id}/
📒 Description:
Update an indicator.
⬇️ Payload:
name (string),
description (string),
source (string),
short_code (string),
category (string),
units (string),
type (int, float, category),
value_min (for int and float types),
value_max (for int and float types),
code_list_id (for "category" type only)
⬆️ Returns:
201:
name (string),
description (string),
source (string),
short_code (string),
category (string),
units (string),
type (int, float, category),
value_min (for int and float types),
value_max (for int and float types),
code_list_id (for "category" type only)
400:
response error
The text was updated successfully, but these errors were encountered:
janbur
changed the title
[Feature Request] Add Indicator
[Feature Request] API - Add Indicator
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 indicator to GeoSight. This will support batch import of indicators e.g. from another platform or another GeoSight instance.
Implementation
POST /api/v1/indicators/
📒 Description:
⬇️ Payload:
⬆️ Returns:
PUT /api/v1/indicators/{id}/
The text was updated successfully, but these errors were encountered: