Lunatech Labs

RESTEasy Play module

RESTEasy Play module v1.3.1

About

The RESTEasy Play module allows you to define JAX-RS RESTful web services in the Play framework using RESTEasy.

Download

RESTEasy Play module 1.3.1 (ZIP) for Play 1.1

Installation

To install, copy the distribution download folder to $PLAY_HOME/modules/ and rename it to resteasy.

Usage

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.

Source code

http://github.com/lunatech-labs/RESTEasy-Play--module

Version history

1.3.1

  • Upgraded RESTEasy to 2.1

1.3

  • Moved from plugin to controller

1.2

  • Fixed redeploy for DEV

1.1

  • Support Resources
  • Support Providers

Issues

Expect many, since this is pre-release quality. Issue tracker: http://github.com/lunatech-labs/RESTEasy-Play--module

About Lunatech

Lunatech Research was founded in 1993 as an IT consulting, product research and development team. Lunatech is a team of adept self-managing programmers, working with a very experienced commercial team.

Contact us

Lunatech Research B.V.
Heemraadssingel 70
3021 DD Rotterdam, The Netherlands.

Phone and email

Tel: +31 10 750 2600
Fax: +31 10 243 9902
Email: contact@lunatech.com