-
Notifications
You must be signed in to change notification settings - Fork 85
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
Relation types in landing page #101
Comments
Actually the landing page doesn't need anything more than the /api link. Everything else can be handled through the API description (OpenAPI). |
If that is the case then why have a /api at all ... or a landing page? We can simply say that hitting the root gets you the service description in the representation requested. Is there a MIME type for open api documents? |
The landing pages I have seen have been largely geared toward a human audience. A nice starting point for follow-your-nose navigation. Not so good if your user is a software analytic. Analytics will want access to a machine readable description of the API such as the OpenAPI document. A human user may not look at the OpenAPI document at all. They may just want to follow the links. |
The landing page is for humans. Humans will go from Machines may navigate towards the data (follow the |
@cportele F.Y.I. I looked through the registered link relations at https://www.iana.org/assignments/link-relations/link-relations.xhtml and I don't see anything that we could use instead of "conformance" and "data". Maybe "item" for "data" but that seems a bit of a stretch since "item" would be used in the case where the response document (i.e. /collections/{name}/items) is composed of links to each feature in the collection. Those links would each be rel="item". Anyway, we can register new link relations (like conformance and data) at https://github.com/link-relations/registry if we want ... |
Keep the relation types and consider submitting a registration request after approval. A stable spec reference is a requirement for registration. What we probably should do now is to define link relation types created by us more formally in the document. |
06-MAY-2019 Conference call: Add a table with all link relations and reference their definitions (for example, "self", "alternate", "next", etc.) and define the new ones (for example, "conformance"). Once we have the table, we should also review the use of relation types again. |
Landing page: Can we reuse existing relation types instead of 'conformance' and 'data'?
The text was updated successfully, but these errors were encountered: