onaio / mspray

Mspray
https://mspray.onalabs.org/
Apache License 2.0
3 stars 1 forks source link

Export Reveal Locations to OpenSRP #447

Closed moshthepitt closed 5 years ago

moshthepitt commented 6 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.

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

moshthepitt commented 5 years ago

closed in #448