> There was talk at the last GWT meetup of adding official JAX-RS support to > GWT. There are several implementations floating around (RestyGWT, > Errai-JAXRS, etc) Is this another JAXRS implementation? I'd be interested > in seeing a comparison between the major implementations. >
I find the approach of flatpack-java from Perka interesting. What it basically does is to provide a class named ApiDescription which gathers information about a single resource and publishes that information through a dedicated method on that resource, e.g. /people/describe. Then they provide a code-gen tool that reads the JSON ApiDescription and generates the client API. This code-gen tool is pluggable and currently its possible to generate Java, JavaScript, Objective-C, Php and Ruby client APIs. There was some work to provide a GWT code-gen dialect but not sure if it already works. What I like about this approach is that you don't have to manually write client APIs for various devices/languages and that you can easily add additional languages to the code generation. That way you can easily support various devices which is one of the main reasons why you would use a server talking JSON. I think if GWT wants to support JAX-RS it should have the same flexibility as the approach above (or GWT just maintains a GWT dialect for flatpack-java). Project: https://github.com/perka/flatpack-java Code-Gen Dialects: https://github.com/perka/flatpack-java/tree/master/fast/src/main/java/com/getperka/flatpack/fast -- J. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
