Return Sensors¶
The API call returns all sensors of a given sensor node.
URL¶
/api/v1/projects/<project id>/nodes/<node id>/sensors/
Method¶
GET
Request Fields¶
The server either returns sensor names in JSON or CSV format. Select output format by setting the accept header.
Accept: application/json
| Accept: text/csv
Success Response¶
Requesting sensor names in JSON format:
Request:
GET
Request Fields:
Accept: application/json
Code: 200 OK
Response Fields:
Content-Type: application/json
Content:
[ "totalstation", "pt100", "weatherStation" ]
Requesting sensor names in CSV format:
Request:
GET
Request Fields:
Accept: text/csv
Code: 200 OK
Response Fields:
Content-Type: text/csv
Content:
totalstation
pt100
weatherStation
Error Response¶
No sensors in database:
Request:
GET
Request Fields:
Accept: application/json
Code: 200 OK
Response Fields:
Content-Type: application/json
Content:
[]