GoCorona-org / Backend

GNU General Public License v3.0
0 stars 2 forks source link

JSON Format Mismatch for Intersection Calculator #29

Closed nightblade23 closed 4 years ago

nightblade23 commented 4 years ago

Currently the endpoint for intersection calculator is corona_app/ The code which is present in Sanjana's branch accepts the JSON data in below format

{ "name": "a", "status": 0, "latitude": 0.0, "longitude": 0.0, "diabetes": false }

The document which is present accepts the JSON data in the below format

{ "id": "p1", "location_history": [ { "timeslot": "00.00.01.15.2020", "lat": "123456", "long": "123456", "status": "unknown" }, { "timeslot": "00.10.01.15.2020", "lat": "123456", "long": "123456", "status": "unknown" } ] }

Would like to have the format for the JSON backend as per the document.

sanjanamoha commented 4 years ago

This was resolved.