JSR 311 plugin

  • Authors : Martin Krasser, davide.cavestro, Noam Y. Tenne
7 votes
Dependency :
compile ":jaxrs:0.10"

Documentation Source Issues

Summary

A plugin that supports the development of RESTful web services based on theJava API for RESTful Web Services (JSR 311: JAX-RS). It is targeted atdevelopers who want to structure the web service layer of an application ina JSR 311 compatible way but still want to continue to use Grails' powerfulfeatures such as GORM, automated XML and JSON marshalling, Grails services,Grails filters and so on. This plugin is an alternative to Grails' built-inmechanism for implementing RESTful web services.At the moment, plugin users may choose between Jersey and Restlet as JAX-RSimplementation. Both implementations are packaged with the plugin. Support forRestlet was added in version 0.2 of the plugin in order to support deploymentson the Google App Engine. Other JAX-RS implementations such as RestEasy orApache Wink are likely to be added in upcoming versions of the plugin.

Installation

Grails 2.0.x to 2.2.x

grails.project.dependency.resolution = {
    plugins {
        runtime ':jaxrs:0.9'
    }
}

Grails 2.3

grails.project.dependency.resolution = {
    plugins {
        runtime ':jaxrs:0.10'
    }
}

Further instructions, such as building the plugin from its sources, can be found here

Description

Project homepage: https://github.com/krasserm/grails-jaxrs/wiki

grails-jaxrs is a Grails plugin that supports the development of RESTful web services based on the Java API for RESTful Web Services (JSR 311: JAX-RS). It is targeted at developers who want to structure the web service layer of an application in a JSR 311 compatible way but still want to continue to use Grails' powerful features such as GORM, automated XML and JSON marshalling, Grails services, Grails filters and so on. This plugin is an alternative to Grails' built-in mechanism for implementing RESTful web services.

At the moment, plugin users may choose between Jersey and Restlet as JAX-RS implementations. Both implementations are packaged with the plugin. Support for Restlet was added in version 0.2 of the plugin in order to support deployments to Google App Engine. Other JAX-RS implementations such as RestEasy or Apache Wink are likely to be added in upcoming versions of the plugin.