Last active
May 12, 2018 06:08
-
-
Save k33g/bf4b4cf66403b0c4b591b8ecc6c73088 to your computer and use it in GitHub Desktop.
HelloResource
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
package garden.bots; | |
import io.vertx.core.json.JsonObject; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
@Path("/hello") | |
public class HelloResource { | |
@Produces("application/json; charset=utf-8") | |
@GET | |
public JsonObject hello() { | |
return new JsonObject().put("message", "Hello World!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment