Darinka-FINKI / linked-data-api

Automatically exported from code.google.com/p/linked-data-api
0 stars 0 forks source link

Content Negotation Underspecified #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/linked-data-api/wiki/API_Formatting_Graphs?ts=126910359
0&updated=API_Formatting_Graphs#Formatter_Selection

The use Accept header to select between formatters is underspecified. If
there are multiple formatters that match the Accept header, which gets used?

Original issue reported on code.google.com by leigh.do...@gmail.com on 20 Mar 2010 at 4:48

GoogleCodeExporter commented 9 years ago
like, if there are 2 XSLT formatters both with text/html ?  or do you mean if 
the
accept header  is like "text/html,application/xml,application/json" ?

Original comment by K.J.W.Al...@gmail.com on 27 May 2010 at 10:07

GoogleCodeExporter commented 9 years ago
I think Leigh's talking about when there are two formatters that match the 
preferred content type. In the 
latter case, I think the order of the content types indicates preference. I 
think we need to have some way 
of indicating preferences between formatters, perhaps a defaultFormatters 
property that holds them and 
for which it's an error if there are two formatters specified for the same 
content type.

Original comment by jeni.ten...@gmail.com on 29 May 2010 at 5:54