Skip to content

Instantly share code, notes, and snippets.

@k33g
Last active May 12, 2018 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k33g/bf4b4cf66403b0c4b591b8ecc6c73088 to your computer and use it in GitHub Desktop.
Save k33g/bf4b4cf66403b0c4b591b8ecc6c73088 to your computer and use it in GitHub Desktop.
HelloResource
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