The RESTEasy Play module allows you to define JAX-RS RESTful web services in the Play framework using RESTEasy.
RESTEasy Play module 1.3.1 (ZIP) for Play 1.1
To install, copy the distribution download folder to $PLAY_HOME/modules/ and rename it to resteasy.
Download and install the RESTEasy Play module and add the following to your conf/application.conf:
module.resteasy=${play.path}/modules/resteasy
# This is the default path prefix for RESTEasy services
# resteasy.path=/rest
Now add this to your conf/routes in order to plug the RESTEasy module:
# Import RESTEasy routes * / module:resteasy
Then start writing JAX-RS resources which will be located at /rest/hello:
@Path("/hello")
public class Hello {
@GET
@Produces("text/plain")
public String get(){
return "Hello World\n";
}
}
Warning This is beta-quality software, and not every RESTEasy feature will work. Let us know if you have anything that needs fixing.
http://github.com/lunatech-labs/RESTEasy-Play--module
Expect many, since this is pre-release quality. Issue tracker: http://github.com/lunatech-labs/RESTEasy-Play--module
Copyright © 2005-2012, Lunatech Labs B.V. All rights reserved.