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
Fields Modifier and Type Field Description static String
ADMIN_UI_FEATURES
static String
FEATURE_ID_PATH_VARIABLE
static String
SCOPE_WEBHOOK_DELETE
static String
SCOPE_WEBHOOK_READ
static String
SCOPE_WEBHOOK_WRITE
static String
TRIGGER_PATH
static String
WEBHOOK
static String
WEBHOOK_ID_PATH_VARIABLE
-
Constructor Summary
Constructors Constructor Description WebhookResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
addWebhook(@Valid WebhookEntry webhook)
jakarta.ws.rs.core.Response
deleteWebhook(@NotNull String webhookId)
jakarta.ws.rs.core.Response
getAllAdminUIFeatures()
jakarta.ws.rs.core.Response
getAllAuiFeaturesByWebhookId(@NotNull String webhookId)
jakarta.ws.rs.core.Response
getAllWebhooksByFeatureId(@NotNull String featureId)
jakarta.ws.rs.core.Response
getWebhooks(int limit, String pattern, int startIndex, String sortBy, String sortOrder, String fieldValuePair)
jakarta.ws.rs.core.Response
triggerWebhook(@NotNull String featureId)
jakarta.ws.rs.core.Response
updateWebhook(@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, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError
-
-
-
-
Field Detail
-
SCOPE_WEBHOOK_READ
public static final String SCOPE_WEBHOOK_READ
- See Also:
- Constant Field Values
-
SCOPE_WEBHOOK_WRITE
public static final String SCOPE_WEBHOOK_WRITE
- See Also:
- Constant Field Values
-
SCOPE_WEBHOOK_DELETE
public static final String SCOPE_WEBHOOK_DELETE
- See Also:
- Constant Field Values
-
WEBHOOK
public static final String WEBHOOK
- See Also:
- Constant Field Values
-
WEBHOOK_ID_PATH_VARIABLE
public static final String WEBHOOK_ID_PATH_VARIABLE
- See Also:
- Constant Field Values
-
FEATURE_ID_PATH_VARIABLE
public static final String FEATURE_ID_PATH_VARIABLE
- See Also:
- Constant Field Values
-
TRIGGER_PATH
public static final String TRIGGER_PATH
- See Also:
- Constant Field Values
-
ADMIN_UI_FEATURES
public static final String ADMIN_UI_FEATURES
- See Also:
- Constant Field Values
-
-
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
@GET @Path("/trigger/{featureId}") @Produces("application/json") public jakarta.ws.rs.core.Response triggerWebhook(@PathParam("featureId") @NotNull @NotNull String featureId)
-
-