Class BasecampController


  • @Requires(beans=Dispatcher.class) @Requires(property="micronaut.chatbots.basecamp.endpoint.enabled",notEquals="false",defaultValue="true")
    @Controller("${micronaut.chatbots.basecamp.endpoint.path:/basecamp}")
    public class BasecampController
    extends java.lang.Object
    Defines a route to handle the Basecamp Chatbot webhook.
    Since:
    1.0.0
    Author:
    Sergio del Amo
    • Constructor Detail

    • Method Detail

      • callback

        @Produces("text/html")
        @Post
        public io.micronaut.http.HttpResponse<java.lang.String> callback​(@Body
                                                                         Query update)
        Parameters:
        update - Basecamp Message
        Returns:
        HTTP Response. It could 200 OK with an empty body if the request is handle asynchronously or a 200 with the response payload if the request is handled synchronously.