dsk icon indicating copy to clipboard operation
dsk copied to clipboard

Proposal for content negotiation

Open schaschjan opened this issue 6 years ago • 1 comments

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.

schaschjan avatar Feb 04 '20 11:02 schaschjan

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.

mariuswilms avatar Apr 09 '20 08:04 mariuswilms