Hi Jarrod,

 

Yes, there is a built in feature for this you can turn on in the TunnelService 
of your Restlet application.

 

Best regards,
Jerome
--
Restlet ~ Founder and Technical Lead ~  <http://www.restlet.org/> 
http://www.restlet.o​rg
Noelios Technologies ~  <http://www.noelios.com/> http://www.noelios.com

 

 

 

De : Jarrod Roberson [mailto:[email protected]] 
Envoyé : dimanche 17 avril 2011 17:35
À : [email protected]
Objet : Is there a way to have Restlet auto negotiate the return Representation 
from a resource extension/suffix like it does with the Accept header?

 

I would like to be able to have a URL like

http://my.server.com/database/person/123123.xml

return an XML based representation and

http://my.server.com/database/person/123123.json

return a JSON based representation and

http://my.server.com/database/person/123123.csv

return a CSV based representation, etc.

I know other frameworks in other languages support this mapping, and before I 
go and write something myself I wanted to see if I missed how to do this in the 
documentation?

I can't set the Accept header easily in browser code to do testing with, that 
is the motivation behind the desire for this behavior.

-- 
Jarrod Roberson
www.vertigrated.com/blog

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

Reply via email to