The EntityCounter counts all Datasets in the Database - even when they are not retrievable by the REST-API due to non-default valueTypes (e.g. category). The /datasets Endpoint ignores such Entries.
This leads to a mismatch between the Dataset-Count retrieved under /services/<serviceid> and the Amount of items in /datasets.
Function that would need to be overwritten/modified for DatasetDao:
https://github.com/52North/dao-series-api/blob/6fc321084cbc27ab21442512b2c59f6df8f1ca3b/dao/src/main/java/org/n52/series/db/da/EntityCounter.java#L115
The EntityCounter counts all Datasets in the Database - even when they are not retrievable by the REST-API due to non-default valueTypes (e.g. category). The
/datasetsEndpoint ignores such Entries.This leads to a mismatch between the Dataset-Count retrieved under
/services/<serviceid>and the Amount of items in/datasets.Function that would need to be overwritten/modified for DatasetDao:
https://github.com/52North/dao-series-api/blob/6fc321084cbc27ab21442512b2c59f6df8f1ca3b/dao/src/main/java/org/n52/series/db/da/EntityCounter.java#L115