This repository has been archived by the owner on Sep 3, 2020. It is now read-only.
forked from lunatech-labs/play-module-resteasy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Lunatech-OSS/RESTEasy-Play--module
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
h1. About | ||
|
||
The RESTEasy Play! module allows you to define JAX-RS RESTful web services in the Play! Framework using RESTEasy. | ||
Usage | ||
|
||
Download and install the RESTEasy Play! module and add the following to your conf/application.conf: | ||
|
||
bc. module.resteasy=.../resteasy-play-module | ||
# This is the default path prefix for RESTEasy services | ||
# resteasy.path=/rest | ||
|
||
Then start writing JAX-RS resources which will be located at /rest/hello: | ||
|
||
bc. @Path("/hello") | ||
public class Hello { | ||
|
||
@GET | ||
public String get(){ | ||
return "Hello World\\n"; | ||
} | ||
|
||
} | ||
|
||
|
||
h1. Warning | ||
|
||
This is beta-quality software, and not every RESTEasy feature will work. Let us know if you have anything that needs fixing. | ||
|
||
h1. Source code | ||
|
||
Our source code repository is browsable on our "Github project page":http://github.com/Lunatech-OSS/RESTEasy-Play--module. | ||
|
||
h1. Bugs | ||
|
||
Expect many, since this is pre-release quality. |