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

Follow HTTP Link Hints? #121

Open
m-mohr opened this issue Apr 26, 2021 · 2 comments
Open

Follow HTTP Link Hints? #121

m-mohr opened this issue Apr 26, 2021 · 2 comments

Comments

@m-mohr
Copy link
Collaborator

m-mohr commented Apr 26, 2021

We have drafted our own Link extensions for the search extension, for example, to add "method": "POST" to links.

@cportele recently made me aware of HTTP Link Hints:

If we want to extend the link object, then we should consider to follow the HTTP Link Hints proposal: https://mnot.github.io/I-D/draft-nottingham-link-hint.html

We should take that into account for the next iteration, especially in case the OGC decided to adopt this.
Therefore we should follow opengeospatial/ogcapi-common#179

@philvarner
Copy link
Collaborator

I had not seen that standard before. It looks great -- I've solved this same issue in several different ways in different APIs I've done, that standard seems like it handles this well.

Also, this would be backwards-compatible with out existing scheme, since the name of the property is _links.

@m-mohr
Copy link
Collaborator Author

m-mohr commented Apr 27, 2021

I was only referring to the hints themselves, not the whole structure. We would inherit this from OGC APIs anyway and they use our link structure, but think about adding hints. See the issue above.

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

2 participants