USGS-WiM / STNServices2

Web services for the Short-Term Network (STN) database
Other
0 stars 0 forks source link

Create endpoints to get counts #127

Open tkoenigusgs opened 6 years ago

tkoenigusgs commented 6 years ago

We need to be able to pull counts of these items from the database:

We also need to filter those counts by sensor type (storm-tide / wave / RDG / precip) or by State. So rather than creating a huge mess of new endpoints for counting, I'm thinking the easiest thing might be to add a "counts_only=true" attribute to the FilteredHWMs and FilteredSensors endpoints. Then I can use all the existing filtering logic of those two endpoints, rather than creating a bunch of new counting endpoints.

tkoenigusgs commented 6 years ago

This issue may be replaced by FEV issue #411, or at least see issue 411 for a more updated list of endpoints that need counts.

HansVraga commented 5 years ago

https://github.com/USGS-WiM/FEV/issues/207 ☝️ FEV issue Todd is referring to