`Resource not found` error when trying to upload data
Having the resource:
{
"id": 18,
"uri": "resource.com/pg02",
"created_at": "2019-12-03T13:15:12.628Z",
"updated_at": "2019-12-03T17:00:01.173Z",
"lat": -23.5521216,
"lon": -46.932386,
"status": "active",
"collect_interval": 60,
"description": "CETESB-Cid.Universitária-USP-Ipen-1",
"uuid": "2875d50f-a99a-4e40-99e1-02737195eb30",
"city": null,
"neighborhood": null,
"state": null,
"postal_code": null,
"country": null,
"capabilities": [
"Media 8h_O3",
"Media horaria_O3",
"Indice_O3"
]
},
the command
curl -X POST -H "Content-Type: application/json" \
-d '{"data": {"environment_monitoring":[{"Media 8h_O3":50,"Indice_O3":"15","Media horaria_O3":"30"}]}}' \
http://10.11.39.21:8000/adaptor/resources/2875d50f-a99a-4e40-99e1-02737195eb30/data
Fails with a 'Resource not found' message.
Edited by Eduardo Silva Araújo