I started introducing myself in REST. I am using REST-framework Restlet. I defined a resource with methods for GET with multiple response formats, such as
@Get("xml")
@Get("json")
Now I want to test my specific response formats in my browser, but I donβt know which parameter I need to specify in my URL in order to get the format. Sort of:
http://localhost:8182/members?type=xml
I tried several param names, but I could not find the correct parameter name. I know that there should be such a parameter, because I saw it already in the URL, but I forgot the name and could not find it on the network. What is the name of this parameter when using restart?
I would be pleased if someone can help me, thanks, Martin
source
share