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

Proposal for content negotiation #130

Open
schaschjan opened this issue Feb 4, 2020 · 1 comment
Open

Proposal for content negotiation #130

schaschjan opened this issue Feb 4, 2020 · 1 comment

Comments

@schaschjan
Copy link
Contributor

Supply one of these content types via HTTP header to indicate which format is preferred.

application/json (default)
application/vnd.dsk.raw+json
application/vnd.dsk.html+json
application/vnd.dsk.markdown+json (raw unparsed markdown)

By implementing such behaviour we can get rid of transferring the same content in multiple formats on every request.

@mariuswilms
Copy link
Member

I see the value in that, there are many bytes going over the wire for "just" the document. I'm unsure if we want to do that with custom MIME types, as I find the quite tricky to remember and set.

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