opencdms-dev / legacy-opencdms-api

⭐🐍 OpenCDMS server application written in Python (FastAPI) and exposing a web interface for `opencdms-app` and other applications
MIT License
3 stars 3 forks source link

Add additional filter parameter to elements search #47

Open isedwards opened 2 years ago

isedwards commented 2 years ago

Rename GET obselements/search as GET elements/search (no longer tied solely to the obselement table).

elements/search?query=${query} should also include station_id as an optional query parameter. If station_id is present then available element results should be returned from the stationelement database table for the given station instead of the obselements table list of all all element codes.

faysal-ishtiaq commented 2 years ago

The second part is done. I will do the renaming part tonight.