Jerome,

I would be happy if users can choose to either use the "extensions" or the
mime-type where the extension is currently used. Consider a web service
which is designed to be used either from a web browser when the media=
parameter is used or from a Java client where the accept header can be set.
In the documentation for this web service it would be useful to be able to
list only the mime types. Rather than saying, if you use the media parameter
use the keyword xhtml or if you use the accept header use
application/xhtml+xml.

Another thing to consider is if you describe your service using WADL you
would be using the mime types so the client using the media= parameter would
need to know the mapping to/from mime type to media type. i.e. you need a
public extensions registry.

Just some thoughts,
Paul

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1581398

Reply via email to