Created
January 30, 2016 20:21
-
-
Save dangnhdev/0e12076635db9883fc5e to your computer and use it in GitHub Desktop.
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
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