users@jax-rs-spec.java.net

[jax-rs-spec users] Re: REST server/client contract

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Tue, 20 Sep 2016 16:24:03 -0700

The problem with this type of client/server contract is that it promotes tight coupling, which goes against the grain of the whole REST philosophy. You still can rely on JAXB (and soon hopefully on JSONB as well) specs to get at least the model-level contract covered, if you decide to do so…

Marek


> On 23 Aug 2016, at 00:19, jernej.pajntar_at_gmail.com wrote:
>
> Am I really the only one who thinks that contracts between
> server/client in an enterprise application are important?
>
> The RESTeasy framework did a great job providing the contract interface
> with Resteasy PROXY Framework*.
>
> But with the rise of ASYNC processing it became useless, because the
> return type cannot be inspected as far as i know.
>
> @GET
> public void asyncGet(@Suspended final AsyncResponse asyncResponse)
>
> Does anyone have any solutions for this problem?
>
> *
> https://docs.jboss.org/resteasy/docs/3.0-beta-3/userguide/html/RESTEasy
> _Client_Framework.html