Additional routes
Description
Currently there aren't any routes to receive a single entity.
For a simpler data retrieving in frontends (current use case) this would be great.
Proposal
New routes:
/Datasources({datasource_id})
/Things({thing_id})
/Datastream({datastream_id})
/Observations({observation_id})
The payload would be the same as already defined by the schema.
Update
We did some exploration on our tsmdl-api instance and found out that the aforementioned routes aren't really possible to implement, due to the fact that each datasource is an own db schema.
Nevertheless, routes to get a single entity are needed. Here is a solution which worked for us:
-
GET
/Datasources(datasource_id)
-
GET
/Datasources(datasource_id)/Things(thing_id)
-
GET
/Datasources(datasource_id)/Things(thing_id)/Datastreams(datastream_id)
Edited by Tobias Kuhnert