Skip to content

RESTify sensor data endpoint #1593

@nhoening

Description

@nhoening

POST /sensors/data and GET/sensors/data should contain the sensor ID in the URL, like all other endpoints do.

We require the user to put it in the JSON body (even in a to-be-deprecated entity address).

We should move to POST /sensors/(id)/data and GET/sensors/(id)/data.

Technical challenge: Linking the sensor ID to the JSON data, as SensorDataDescriptionSchema (and its derivatives) need the sensor Id to do some validations on the input (e.g. sensor.event_resolution).

We should then announce the deprecation, while both sets will remain working for one more version.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions