USGS-WiM / STNServices

.net Core refactored STNServices2
Other
0 stars 0 forks source link

Add ability to get counts from endpints #1

Closed HansVraga closed 4 years ago

HansVraga commented 6 years ago

Request from Todd:

Per this morning's conversation, here is a list of endpoints where it would be really handy to add a "Count=True" parameter so that the web service would just respond with a count, rather than with the entire data set:

lprivette commented 6 years ago

What does Todd want to do with this exactly?

Jeremy pointed out to me that you can already get a count for any endpoint at https://stn.wim.usgs.gov/STNServices/Documentation/ .

For example, if you go here https://stn.wim.usgs.gov/STNServices/Documentation/Site/FilteredSites , enter 180 for the event ID and then click "Load response in .json format". It returns an array with the count:

image

lprivette commented 4 years ago

related to https://github.com/USGS-WiM/STNServices2/issues/127

HansVraga commented 4 years ago

Closing in favor of #127