Class WebhookResource
java.lang.Object
io.jans.configapi.core.rest.BaseResource
io.jans.ca.plugin.adminui.rest.webhook.WebhookResource
@Path("/admin-ui/webhook")
public class WebhookResource
extends io.jans.configapi.core.rest.BaseResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class io.jans.configapi.core.rest.BaseResource
DEFAULT_SEARCH_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseaddWebhook(@Valid WebhookEntry webhook) jakarta.ws.rs.core.ResponsedeleteWebhook(@NotNull String webhookId) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsegetAllAuiFeaturesByWebhookId(@NotNull String webhookId) jakarta.ws.rs.core.ResponsegetAllWebhooksByFeatureId(@NotNull String featureId) jakarta.ws.rs.core.ResponsegetWebhooks(int limit, String pattern, int startIndex, String sortBy, String sortOrder, String fieldValuePair) jakarta.ws.rs.core.ResponsetriggerWebhook(@NotNull String featureId, @Valid @NotNull List<ShortCodeRequest> shortCodes) jakarta.ws.rs.core.ResponseupdateWebhook(@Valid WebhookEntry webhook) Methods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getRegexPattern, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
-
Field Details
-
SCOPE_WEBHOOK_READ
- See Also:
-
SCOPE_WEBHOOK_WRITE
- See Also:
-
SCOPE_WEBHOOK_DELETE
- See Also:
-
WEBHOOK
- See Also:
-
WEBHOOK_ID_PATH_VARIABLE
- See Also:
-
FEATURE_ID_PATH_VARIABLE
- See Also:
-
TRIGGER_PATH
- See Also:
-
ADMIN_UI_FEATURES
- See Also:
-
-
Constructor Details
-
WebhookResource
public WebhookResource()
-
-
Method Details
-
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("inum") @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)
-