Class WebhookResource


  • @Path("/admin-ui/webhook")
    public class WebhookResource
    extends io.jans.configapi.core.rest.BaseResource
    • Constructor Detail

      • WebhookResource

        public WebhookResource()
    • Method Detail

      • getAllAdminUIFeatures

        @GET
        @Path("/features")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getAllAdminUIFeatures()
      • getAllAuiFeaturesByWebhookId

        @GET
        @Path("/features/{webhookId}")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getAllAuiFeaturesByWebhookId​(@PathParam("webhookId") @NotNull
                                                                        @NotNull String webhookId)
      • getAllWebhooksByFeatureId

        @GET
        @Path("/{featureId}")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getAllWebhooksByFeatureId​(@PathParam("featureId") @NotNull
                                                                     @NotNull String featureId)
      • getWebhooks

        @GET
        @Produces("application/json")
        public jakarta.ws.rs.core.Response getWebhooks​(@DefaultValue("50") @QueryParam("limit")
                                                       int limit,
                                                       @DefaultValue("") @QueryParam("pattern")
                                                       String pattern,
                                                       @DefaultValue("0") @QueryParam("startIndex")
                                                       int startIndex,
                                                       @DefaultValue("webhookId") @QueryParam("sortBy")
                                                       String sortBy,
                                                       @DefaultValue("ascending") @QueryParam("sortOrder")
                                                       String sortOrder,
                                                       @DefaultValue("") @QueryParam("fieldValuePair")
                                                       String fieldValuePair)
      • addWebhook

        @POST
        @Produces("application/json")
        public jakarta.ws.rs.core.Response addWebhook​(@Valid
                                                      @Valid WebhookEntry webhook)
      • updateWebhook

        @PUT
        @Produces("application/json")
        public jakarta.ws.rs.core.Response updateWebhook​(@Valid
                                                         @Valid WebhookEntry webhook)
      • deleteWebhook

        @DELETE
        @Path("/{webhookId}")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response deleteWebhook​(@PathParam("webhookId") @NotNull
                                                         @NotNull String webhookId)
      • triggerWebhook

        @POST
        @Path("/trigger/{featureId}")
        @Produces("application/json")
        public jakarta.ws.rs.core.Response triggerWebhook​(@PathParam("featureId") @NotNull
                                                          @NotNull String featureId,
                                                          @Valid @NotNull
                                                          @Valid @NotNull List<ShortCodeRequest> shortCodes)