You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking at the Python client docs (HTML) and found the capabilities() method, which returns RESTCapabilities.
RESTCapabilities is not documented, search doesn't find it.
How can it be used? Documentation should be added.
Looking at the code reveals how to use it, e.g. con.capabilities().get("federation") but it's not clear from the docs.
The text was updated successfully, but these errors were encountered:
Indeed RESTCapabilities is not yet included in the docs
In principle it's not hard to add, but I'm bit hesitant to do that at the moment because I'm not really happy with the code architecture around it (and I don't want to over-promise that this is a public API yet).
This is one of the leftovers of the 2018-ish initial design of the package, where you have an abstract Capabilities and a REST-specific implementation RESTCapabilities, but I don't see the point of this inheritance/abstraction.
I'd first want to merge these two classes to a single Capabilities class and make that the public API.
Is this an important/urgent thing for you, or you managed to workaround it and just wanted to signal the bad state of the docs?
I'm looking at the Python client docs (HTML) and found the capabilities() method, which returns RESTCapabilities.
RESTCapabilities is not documented, search doesn't find it.
How can it be used? Documentation should be added.
Looking at the code reveals how to use it, e.g.
con.capabilities().get("federation")
but it's not clear from the docs.The text was updated successfully, but these errors were encountered: