- Fixes #240 by adding an
Api.openapi()
method that returns a dictionary of the entire OpenAPI spec.
Breaking Changes
- Fixes #239, #229, #219, #209, #189, and #166 by allowing
Api.http_session
to be overridden by user-supplied customrequests.Session()
objects to more precisely control certain requests behavior. While this was possible before, it wasn't applied to all requests. For example, getting session keys was done inApi().__init__()
which wouldn't respect a custom http_session. This behavior has been changed and will now only occur when the secrets endpoint is called.
Note: this change removes thessl_verify
kwarg passed to.api()
that controlled certificate validation in previous versions. Please see the docs for the new method. - Fixes #241 where the same objects failed equality tests if one was derived from a nested object on a different endpoint (thanks @jsenecal).
- Fixes an inconsistency noted in #224 by making
Endpoint.get()
andEndpoint.filter()
behave similarly (return None) when the resource isn't found. - Fixes #144 by returning proper objects from
.create()
on detail endpoint routes likeavailable-ips
andavailable-prefixes
.