-
Notifications
You must be signed in to change notification settings - Fork 5
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
Profile negotiaton: profile token in Accept-Profile header #15
Comments
The expectation was that canonical URIs were preferred, but realistically URL encoding URIs as query string arguments is ugly and counter to typical practice for systems that already have some equivalent concept of alternative profiles that can be chosen. There are two things we need to consider: Lets hears pros and cons from people about allowing tokens in the Accept header. (PS its no great drama for me in the implementation to allow it - so I'm agnostic, other than I feel there must be URIs for profiles accessible otherwise there is no interoperability benefit at the data level - and we are a Data Exchange WG :-) ) |
Hi @steve-chavez & @rob-metalinkage the Dataset Exchange WG has just split repositories for DCAT, ConnegP and so on so I've transferred this issue to the ConnegP repo from the DCAT one. Please continue all ConnegP work here! |
@nicholascar Cool. Thank you. @rob-metalinkage I would be in favor of allowing the token in the header. It makes the header easier to type and thus makes APIs easier to explore. In the document it's mentioned that one of the reasons of qsa-uri is to allow human-actionable content negotiation. I'd like to add that API explorer tools(such as Postman, Insomnia, etc.), make modifying headers human-actionable as well. Setting headers is something that Open Data users and developers are used to when exploring APIs. Regarding interoperability, I agree, I also intend to provide the token mappings. |
(also pinging @RubenVerborgh and @hvdsomp as co-authors of the IETF draft)
When writing the current IETF draft specification of the headers |
In https://www.w3.org/TR/dx-prof-conneg/#profileid it's mentioned that:
There is an example in https://www.w3.org/TR/dx-prof-conneg/#getresourcebyprofile on how to make a request with a token profile in the UR(with the
_profile
query param):But there isn't an example with a profile token in an
Accept-Profile
header.Would a request like the following be valid for profile negotiation?
(Granted that token mappings are provided as specified in https://www.w3.org/TR/dx-prof-conneg/#http-tokens)
I'm trying to implement content negotiation by profile on postgrest.org.
Would appreciate any clarification/guidance on this. Thank you.
The text was updated successfully, but these errors were encountered: