Howto specify format of Restlet-response in browser?
- by martin
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