Skip to content
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 URI for "home" #212

Closed
dret opened this issue Mar 1, 2017 · 7 comments
Closed

Well-known URI for "home" #212

dret opened this issue Mar 1, 2017 · 7 comments

Comments

@dret
Copy link
Contributor

dret commented Mar 1, 2017

as brought up in the discussion of #41, another helpful piece in the "home" puzzle could be to register a home well-known URI, so that developers liking this pattern for discovery can use an existing value.

@asbjornu
Copy link

asbjornu commented Mar 2, 2017

I like this idea. Would you say it's okay for a well-known URI to do an HTTP 301 to i.e. / for applications where that make sense?

@dret
Copy link
Contributor Author

dret commented Mar 2, 2017 via email

@mnot
Copy link
Owner

mnot commented Mar 6, 2017

What's the use case here?

We mint a well-known URI when it's not realistic to use a URL, because we just have a hostname and port to work with.

Is there a use case for home documents where you can't just give the user a URL?

@algermissen
Copy link

I have been using it in situations where the clients know/discover a bunch of other systems as just host and port information and then use the general well known location to proceed.

In combination with DNS SRV or DNS-SD based discovery I thing this would be useful.

Having said that, I see your point (and e.g. with DNS-SD there is also 'path' in the TXT record to communicate a path).

@mnot
Copy link
Owner

mnot commented Jan 29, 2018

Current interpretation of the well-known URI spec by IETF folks is that it's only intended for places where a) the client can't get a full URL, or b) the well-known location has metadata about the whole origin.

This doesn't seem to fit into either. I can see that DNS-SD/SRV could use them, but the bar is being raised to require an actual, concrete use case.

I think that it'd make more sense for a particular API to register a well-known location if it meets the requirements above.

@mnot mnot closed this as completed Jan 29, 2018
@algermissen
Copy link

As a note for future readers: I recently saw @dret has worked on a link-rel that serves the discovery purpose well https://tools.ietf.org/html/draft-wilde-service-link-rel

@dret
Copy link
Contributor Author

dret commented Jan 29, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants