...
Install Postman from https://www.postman.com/downloads/
Import the SafePlaces Ingest API.postman_collection.json file attached to this page
Once imported, click on SafePlaces Ingest API
Click on the … icon
Click “Edit”
Click “Variables”
Set the ingest URL to https://ingest.staging.safeplaces.extremesolution.com
Go to https://staging.spl.extremesolution.com/trace
Click “Add new record” and copy the 6 digit code
In Postman, click “Access Code Valid”
Change the POST url to
{{ingesturl}}/access-code/valid
, you can also watch the video attached to this page as an example Setting up SafePlaces Ingest APINow select the header tab “Body”
You should see
"accessCode": 149369”
Enter the new 6 digit code overwriting 149369
Click “Send”
Should return TRUE
In Postman, click “Consent”
Change the POST url to
{{ingesturl}}/consent
Select the header tab “Body”
You should see
"accessCode": 149369, "consent": true
Enter the 6 digit code as before
Click “Send”
Should return a
200
with an empty response body
In Postman, click “Upload”
Change the POST url to
{{ingesturl}}/upload
Select the header tab “Body”
Again enter the 6 digit code as before, request body should look something like;
Code Block { "accessCode": 149369, "concernPoints" : [ { "id": 30601, "publishDate": null, "caseId": 150, "pointId": 30601, "longitude": 42.21576848894619, "latitude": 13.925577559640354, "duration": 5, "nickname": null, "time": "2020-07-16T22:35:00.000Z" } ] }
Click “Send”
You should now see something like
"uploadId": "fdf2b23a-d29c-489d-b79e-53c53e014383"
Go back to SafePlaces browser
Check data upload of this record id
...