ArcBees / GWTP

A complete model-view-presenter framework to simplify your next GWT project.
Other
335 stars 132 forks source link

JAX-RS interfaces without RestAction wrappers #809

Closed Tillerino closed 8 years ago

Tillerino commented 8 years ago

Is there a way to use JAX-RS interfaces directly in GWTP? I mean

@GET
@Path("/wherever")
SomeObject doSomething();

vs.

@GET
@Path("/wherever")
RestAction<SomeObject> doSomething();

The obvious advantage being of course that the interface can be used in the backend as well. I could swear I read how to do this somewhere, but I can't find it anymore.

meriouma commented 8 years ago

Yes, it is provided as an extension to GWTP's REST-Dispatch : dispatch-rest-delegates.

You can look into the carstore sample or the documentation