Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Simplify filtering API #15

Open
ghost opened this issue Jul 27, 2018 · 1 comment
Open

Simplify filtering API #15

ghost opened this issue Jul 27, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jul 27, 2018

The filtering API of HDS can be simplified by removing the {type} and taking the /many behaviour as default. The efficiency effects should be considered.

  • Get datasource with name:
    /registry/one/name/equals/home/bedroom/temperature
  • Filter all datasources with prefix home in name:
    /registry/many/name/prefix/home
  • Filter all datasources based on address meta field:
    /registry/many/meta.address/contains/Bonn

[LS-430] created by tavakoli

@ghost
Copy link
Author

ghost commented Dec 12, 2018

What about adding a limit query parameter?

  • Get datasource with name:
    /registry/one/name/equals/home/bedroom/temperature?limit=1
  • Filter all datasources with prefix home in name:
    /registry-/many-/name/prefix/home
  • Filter all datasources based on address meta field:
    /registry/many/meta.address/contains/Bonn

by tavakoli

@ghost ghost added the Historical Datastore label May 27, 2019
@farshidtz farshidtz added the enhancement New feature or request label Jul 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant