I have been trying to figure out why i cant run this piece of code for a while now.
curl -X POST \'
try this:
curl -X POST 'http://tp-api.herokuapp.com/beacons/' -H 'Content-Type: application/json' -d '{"beacons": [{"id": "a", "location": [10, 0]}, {"id": "b", "location": [0, 10]}, {"id": "c", "location": [0, 0]} ]}'
the 'a' tag doesn't make sense