Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update date-range and doy queries to use the new endpoint as the source #8

Open
lbross opened this issue Jun 11, 2024 · 0 comments
Open

Comments

@lbross
Copy link
Collaborator

lbross commented Jun 11, 2024

The specs for the new zonal stats API endpoints are available via the OpenAPI docs (https://api.snodas.geog.pdx.edu/docs). One can experiment with the new endpoints on that page as well. Note that they return a json format response by default; to get a CSV like we'll want for the UI, the HTTP request ACCEPTS header needs to be set to "text/csv". To test that out, build and run a query via the test functionality on that page then copy the example curl command and change the ACCEPTS header from "/" to "text/csv".

The parameters are no longer part of the url and the query parameters are at the end of the url. Updating these endpoints to use the new api will allow us to retire the old api.

lbross added a commit to lbross/snodas-ui that referenced this issue Jun 27, 2024
…t to the new endpoint with the correct parameters.
jkeifer pushed a commit that referenced this issue Jul 19, 2024
* issue #7: Implement SNODAS Zonal Values - Doy Range query

* issue #7: Added date range query; Changing elev range isn't working; Need to add event listener

* issue #7: Now sending selected elev interval

* issue #8: Updated linkend strings for both queryInits to point to the new endpoint with the correct parameters.

* issue #7: Update query names per @jduh request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant