Howto specify format of Restlet-response in browser?
Posted
by martin
on Stack Overflow
See other posts from Stack Overflow
or by martin
Published on 2010-04-27T19:59:48Z
Indexed on
2010/04/27
20:03 UTC
Read the original article
Hit count: 406
Hello everybody,
i've started to introduce myself into REST. I use as REST-framework Restlet. I have defined a resource with methods for the GET with several response formats like
@Get("xml")
@Get("json")
I now want to test my defined response-formats with my browser, but I don't know which parameter I have to specify in my URL to get the format. Something like:
http://localhost:8182/members?type=xml
I've tried some param-names, but I couldn't find the right param-name. I know that there must be such a parameter, because I've seen it already in an URL, but i forgot the name and couldn't find it in the net. How is the name of this parameter when using restlet?
I would be pleased, if somebody can help me, thanks, Martin
© Stack Overflow or respective owner