Open schaschjan opened 4 years ago
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.
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.
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.