Class SlackResource
java.lang.Object
org.apache.camel.quarkus.component.slack.it.SlackResource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsecreateBlockMessage(String text) jakarta.ws.rs.core.ResponsecreateSlackMessageWithToken(String message) jakarta.ws.rs.core.ResponsecreateSlackMessageWithWebhook(String message)
-
Field Details
-
Constructor Details
-
SlackResource
public SlackResource()
-
-
Method Details
-
getSlackMessages
@Path("/messages") @GET @Produces("application/json") public SlackMessageResponse getSlackMessages() throws Exception- Throws:
Exception
-
createSlackMessageWithToken
@Path("/message/token") @POST @Consumes("text/plain") public jakarta.ws.rs.core.Response createSlackMessageWithToken(String message) throws Exception - Throws:
Exception
-
createSlackMessageWithWebhook
@Path("/message/webhook") @POST @Consumes("text/plain") public jakarta.ws.rs.core.Response createSlackMessageWithWebhook(String message) throws Exception - Throws:
Exception
-
createBlockMessage
@Path("/message/block") @POST @Consumes("text/plain") public jakarta.ws.rs.core.Response createBlockMessage(String text) throws Exception - Throws:
Exception
-