Uploaded image for project: 'Clowder'
  1. Clowder
  2. CATS-762

Allow querying of datapoints by attribute value

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • Old Issues
    • None
    • GeoStreams
    • None

      Add a 'values' parameter for datapoint search that hooks into the PSQL "@>" operator that allows querying by property, e.g. in the gltg db:

      select * from datapoints where datapoints.data @> '{"site": "03336890"}' ;

      I would implement this with:

      /api/geostreams/datapoints?source=HRU&filter={"site":"03336890"} 

      ...or similar.

              mburnet2 Maxwell Burnette
              mburnet2 Maxwell Burnette
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: