domino-rest
domino-rest copied to clipboard
Add Support for jax-rs Response return type
This should allow us to define client interfaces in domino-rest like this
...
import jax.ws.rs.core.Response;
...
public interface FooResource {
@POST
@Path("foo/bar")
Response create(Foo foo);
}
The problem with this is that the Response class does not implies any type information regarding the response body, so we need a way to describe the response body type for the annotation processor to generate proper deserializer.
https://stackoverflow.com/questions/4687271/jax-rs-how-to-return-json-and-http-status-code-together