Closed moshthepitt closed 5 years ago
Please see: #440
We need to add a way to export mSpray locations to OpenSRP so that the database there can have location information.
Send a POST to https://reveal-stage.smartregister.org/opensrp/rest/location?is_jurisdiction=true The mime-type should be application/json and the body should be a geojson object e.g on https://github.com/OpenSRP/opensrp-server-common/issues/2
Send a similar the request as above but with PUT method
Send a POST of Json array of GeoJSON objects to https://reveal-stage.smartregister.org/opensrp/rest/location/add?is_jurisdiction=true The mime-type should be application/json
Send a POST to https://reveal-stage.smartregister.org/opensrp/rest/location The mime-type should be application/json and the body should be a geojson object e.g on https://github.com/OpenSRP/opensrp-server-common/issues/2
Send a POST of Json array of GeoJSON objects to https://reveal-stage.smartregister.org/opensrp/rest/location/add The mime-type should be application/json
closed in #448
Please see: #440
We need to add a way to export mSpray locations to OpenSRP so that the database there can have location information.
API Docs
To Create a Parent Location
Send a POST to https://reveal-stage.smartregister.org/opensrp/rest/location?is_jurisdiction=true The mime-type should be application/json and the body should be a geojson object e.g on https://github.com/OpenSRP/opensrp-server-common/issues/2
To Edit a Parent Location
Send a similar the request as above but with PUT method
To Create Many Parent Locations
Send a POST of Json array of GeoJSON objects to https://reveal-stage.smartregister.org/opensrp/rest/location/add?is_jurisdiction=true The mime-type should be application/json
To Create a Structure
Send a POST to https://reveal-stage.smartregister.org/opensrp/rest/location The mime-type should be application/json and the body should be a geojson object e.g on https://github.com/OpenSRP/opensrp-server-common/issues/2
To Edit a Structure
Send a similar the request as above but with PUT method
To Create Many Structures
Send a POST of Json array of GeoJSON objects to https://reveal-stage.smartregister.org/opensrp/rest/location/add The mime-type should be application/json