Open dirk-ecker opened 2 years ago
You can already query the feature by their domainID using the features
and matchDomainIds
parameters. Here is an example request:
This is supported in the Helgoland-API version 2.x and 3.x.
Okay, we use 3.5 so this should work. How is this done in the source? I can find isMatchDomainIds, but only the declaration of the method, not the use. Seems to be generic magic or ...?
My colleague found out that this does not work because the parameter is converted to lowercase. So it searches for wupper-talsperre_ablauf,wupper-talsperre_absperrbauwerk instead of Wupper-Talsperre_Ablauf,Wupper-Talsperre_Absperrbauwerk.
Ist this intended or a bug?
This is intended but it seems that there is an issue in the used sensorweb-server-dao-impl version. I have tested the current version and with this the filtering on the domainIds
works.
There is a new Sensor Web Server Helgoland Adapters version available where the filtering on domainIds
works.
@CarstenHollmann Thank you.
It would be nice if all entities would support generic query parameters corresponding with their result attributes or at least for selected attributes.
Here in example for the features entity
http:///helgoland-adapters-webapp/api/features?properties.domainId=Wupper-Talsperre_Ablauf,Wupper-Talsperre_Absperrbauwerk
gives me
or am I missing something and this is already possible?
Another good alternative would be https://graphql.org, that supports a rich query language.
Thanks in advance for your response.