Skip to content

Conversation

@Enovotny
Copy link
Collaborator

updating session handling for timeseries and location endpoints.

jvanaalsburg and others added 17 commits April 9, 2024 12:08
The api module contains a global API session which is used when making
calls to the CWMS Data API. The user may specify an alternative root URL
for the API and an optional authentication key when initializing the
session.

General REST functions (get, post, etc) are provided for interacting
with the CDA via the session object.
Since the session is no longer required when making API calls, the
interfaces have been implemented as functions, rather than instance
methods.

The built-in requests_mock pytest fixture has been used to help simplify
the tests.
Use standard prefixes (create, delete, get, update) for functions that
interact with the CDA.
@Enovotny Enovotny linked an issue Apr 19, 2024 that may be closed by this pull request
@Enovotny Enovotny merged commit b1da6f8 into main Apr 23, 2024
@Enovotny Enovotny deleted the 12-session-handling branch April 25, 2024 18:25
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

Successfully merging this pull request may close these issues.

session handling

3 participants