rundsk / dsk

DSK, short for “Design System Kit” – a workbench for collaboratively creating Design Systems
https://rundsk.com
Other
82 stars 8 forks source link

Proposal for content negotiation #130

Open schaschjan opened 4 years ago

schaschjan commented 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.

mariuswilms commented 4 years ago

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.