Skip to content

Instantly share code, notes, and snippets.

@dangnhdev
Created January 30, 2016 20:21
Show Gist options
  • Save dangnhdev/0e12076635db9883fc5e to your computer and use it in GitHub Desktop.
Save dangnhdev/0e12076635db9883fc5e to your computer and use it in GitHub Desktop.
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
/**
*
* @author dangg
*/
@Path("/rest")
public class ServerTest {
@GET
@Produces(MediaType.TEXT_PLAIN)
@Path("/test")
public Response verify(String content) {
String result = "Rest Test Services successfully started";
return Response.status(200).entity(result).build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment