Skip to content

v3.2: Should API URLs in general, and the Server Object url field in particular, still only use the retrieval URL as the base URL #4541

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

Open
handrews opened this issue Apr 10, 2025 · 2 comments
Labels
deployment Servers and related deployment configuration

Comments

@handrews
Copy link
Member

PR #4389 adds $self as the base URI for API Description URIs per RFC3986§5.1.1, and keeps the further process for establishing base URIs in alignment with RFC3986§5.1.2–4.

It does not change the base URI for API URLs, including Server Object urls, and leaves that process looking to the nearest Server Object and then to the containing document's retrieval URL. The only change that PR introduces that would be relevant is the ability to manually supply a retrieval URL (for reasons included in the PR, although see Issue #4540).

Since PR #4389 is not intended to change how API URLs work, if we want to change them based on the new presence of $self that needs its own discussion, which I a starting here.

@handrews
Copy link
Member Author

More relevant commentary from @notEthan:

I certainly agree/understand that the URIs of the API description and objects within are quite different than (or unrelated to) API server/endpoint URLs. My hesitation is on the idea that the retrieval URI for the OAD is likely to be more closely related to the server URL than $self (I've generally seen the OAD served from one place accompanying documentation, not with each deployment, and aren't server variables the better mechanism for deployment-specific URLs?).

Or rather, my hesitation as an implementer of tooling is on whether that difference is worth implementing - I have one base URI for objects in the OAD (including servers), which will be changing to inherit from $self, and no place to put another base URI. It's not difficult to implement but it adds some complexity in a place I have doubts on the real utility of it.

@handrews handrews added the deployment Servers and related deployment configuration label Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Servers and related deployment configuration
Projects
None yet
Development

No branches or pull requests

1 participant