domino-rest icon indicating copy to clipboard operation
domino-rest copied to clipboard

Add Support for jax-rs Response return type

Open vegegoku opened this issue 5 years ago • 1 comments

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.

vegegoku avatar May 15 '20 12:05 vegegoku

https://stackoverflow.com/questions/4687271/jax-rs-how-to-return-json-and-http-status-code-together

masterdany88 avatar Jun 02 '20 17:06 masterdany88