Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package teste;
- import javax.ws.rs.GET;
- import javax.ws.rs.Path;
- import javax.ws.rs.PathParam;
- import javax.ws.rs.Produces;
- @Path("/echo")
- public class Echo {
- @GET
- @Path("/{id}")
- @Produces("application/json")
- public Pojo x(@PathParam("id") int k){
- return new Pojo(k);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement