first step towards jax-rs support, first tests passing
This commit is contained in:
parent
b1900b0a25
commit
0243a60d01
2 changed files with 19 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
||||||
|
package se.scalablesolutions.akka.api;
|
||||||
|
|
||||||
|
public interface JerseyFoo {
|
||||||
|
public String foo();
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
package se.scalablesolutions.akka.api;
|
||||||
|
|
||||||
|
import javax.ws.rs.Path;
|
||||||
|
import javax.ws.rs.GET;
|
||||||
|
import javax.ws.rs.Produces;
|
||||||
|
|
||||||
|
@Path("/foo")
|
||||||
|
public class JerseyFooImpl implements JerseyFoo {
|
||||||
|
@GET
|
||||||
|
@Produces({"application/json"})
|
||||||
|
public String foo() {
|
||||||
|
return "hello foo";
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue