-
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
Consider HTTP 300 as realization for list profiles / list tokens #5
Comments
Alternatively, or in addition, the document returned could be referenced from a link header. That would mean that we would register a new rel type, similar (abstractly) to the |
@azaroth42 scripsit:
Or we use the 'profile' target attribute as proposed in w3c/dxwg#501. We could also consider to extend the
The syntax for profiles is only meant as an example . The basic idea is to to extend
so that we can specify which profile the resource representation conforms to and (optionally) which token can be used instead of the profile URI. |
@azaroth42 We discussed this issue in the CNEG meeting on 2019-09-12. The decision was to move this to future work. Is that OK for you? |
I agree with marking as future work, this comment’s just for future readers.
Goven that we now have the Alternate Profiles data model, the body payload could be conformant with that, serialised in an RDF format or tabulated in HTML (we have examples of both in the doc). |
Sure, no problem. Thanks for checking in! |
Thanks @azaroth42. I've marked this as future-work. |
possible solution: after The server SHOULD attempt to reply with a profile that best matches the client request. add The server MAY respond with the ALTR representation and a HTTP 300 code as a fallback if unable to determine an appropriate response, such as when an explicit media type not supported is requested. |
OPTIONS is not cacheable, and there isn't a profile parameter for the Link header construct ... so ... how about an HTTP 300 Multiple Choices response?
HTTP 300 says:
This would allow the response to describe the URIs of the representations, and their metadata, thus including both profile URI and token, if any. The disadvantage is that it would be a custom response format, but one that is likely very obvious and could tie back to other DXWG deliverables.
The text was updated successfully, but these errors were encountered: