Class RestApi


  • @Path("callback")
    public class RestApi
    extends Object
    Version:
    1.0 Rest api to for webhook callback function
    Author:
    Ruben Bermudez
    • Constructor Detail

      • RestApi

        public RestApi()
    • Method Detail

      • registerCallback

        public void registerCallback​(WebhookBot callback)
      • updateReceived

        @POST
        @Path("/{botPath}")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response updateReceived​(@PathParam("botPath")
                                                        String botPath,
                                                        Update update)
      • testReceived

        @GET
        @Path("/{botPath}")
        @Produces("application/json")
        public String testReceived​(@PathParam("botPath")
                                   String botPath)