-
Notifications
You must be signed in to change notification settings - Fork 2
add /server-info end point providing machine-readable information #20
Comments
At least until API (and thus version) is formalized and used by both dandiarchive and dandi-cli, we might also want to include in the server record some "comprehension" of the urls which currently lives in dandi-cli: https://github.com/dandi/dandi-cli/blob/master/dandi/download.py#L17 |
Yes I agree. Can we include this as part of the API chat? |
I have moved this issue from the webui From the original description I will remove If entry level domain |
@jwodder . I wonder if we could just use setuptools/packaging format for |
@yarikoptic You're asking whether the server could specify allowed client versions and have the client check that its version matches? Yes, that's doable using |
@satra also suggested that we could use some dedicated OPTIONS call (instead of GET) to request such information from the server. I personally have no preference to either explicit PATH and GET or OPTIONS on |
@yarikoptic What, if anything, should the endpoint currently return for the keys other than |
ATM, (and I removing api-versions since pertinent only to "api" service, and afaik it is shy to announce any version ATM anyways) something like this:
client would make use of versions information, and could also ensure that Then we could add more fields as needed and progress |
ATM in
dandi-cli
I need toI think it would be nice if server could be queried relevant information. I see following (assuming json, with non-json comments ;-)) structure could be returned now
Then any specific deployment could provide its own details, so clients could avoid any hardcoding, work with any deployment, and provide user with an informative error if they encounter some version they do not support, or a deployment lacking a specific feature/service.
May be there is a better, standardized schema for such descriptions already which we could adopt.
The text was updated successfully, but these errors were encountered: