@Get
@Path("/item)
public void show(){
Item item = newItem(name,10.0);
result.use(json()).from(item).serialize();
}
And I request this uri, with the accept application/xml.
Restfulie.at("http://mydomain/item").accept("application/xml").get();
Should the server response with a 200, and the content with json?
thanks,
Doni.