-
Notifications
You must be signed in to change notification settings - Fork 12
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
well-known/openeo confusion #460
Comments
https://example.com/api/v1/.well-known/openeo doesn't make a lot of sense because the intention of the well-known document to hide the versioning from the user so that the client simply can choose the best version (i.e. latest supported production usually). |
I understand the goal of course, but I guess the thing that I find confusing or unclear about the current explanation is that it mixes up two aspects of .well-known URLs:
I think you can have one without the other:
Examples use cases that are not clear how to handle (both from client and back-end viewpoint) from the description:
|
If you click the path in redoc (what renders our OpenAPI docs), you can see the so called "server". You can also see them in the document: https://github.com/Open-EO/openeo-api/blob/master/openapi.yaml#L523 This applies to all endpoints except ./well-known/openeo (i.e. the "API"). As OpenAPI is/was(?) meant for specific APIs, you can't really fill that very well and it's also not very flexible. What is specified there are really just examples. What it is meant to say is:
Top-level for the WKD is really just what you define as your top-level, but it doesn't make sense to place it wherever versioning is in place. "production" is also some kind of versioning though. So you could also write in the API docs:
Whatever the client gets provided by the user, they must append the well-known path to that URL and connect to the newly constructed URL. That can also be in a sub-folder (but ideally it would not be). If that doesn't exist, they fall back to the given URL. More schematically:
|
Co-authored-by: Stefaan Lippens <[email protected]>
openeo-api/openapi.yaml
Lines 883 to 886 in 16b1122
While I was discussing something about
.well-known/openeo
with @dthiex I found this "URI MUST NOT be versioned" is a bit confusing:is it really "forbidden" to support a not-toplevel
.well-known/openeo
, e.g. something likehttps://example.com/api/v1/.well-known/openeo
orhttps://example.com/foobar/.well-known/openeo
?Or should it just be a recommendation: "URI SHOULD NOT be versioned" ?
The text was updated successfully, but these errors were encountered: