Package dev.dokimos.server.controller.v1
Class AlertWebhookController
java.lang.Object
dev.dokimos.server.controller.v1.AlertWebhookController
@RestController
@RequestMapping("/api/v1/projects/{projectId}/alert-webhooks")
public class AlertWebhookController
extends Object
CRUD over a project's regression-alert webhooks. Writes pass through the existing auth seam; reads
are open. The signing secret is never returned in any response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<AlertWebhookView> createAlertWebhook(UUID projectId, @Valid CreateAlertWebhookRequest request, jakarta.servlet.http.HttpServletRequest http) Registers a webhook for the project.voiddeleteAlertWebhook(UUID projectId, UUID webhookId, jakarta.servlet.http.HttpServletRequest http) Deletes a webhook.getAlertWebhook(UUID projectId, UUID webhookId, jakarta.servlet.http.HttpServletRequest http) Returns one webhook, or 404 if the project or webhook does not exist or belongs to another tenant.listAlertWebhooks(UUID projectId, jakarta.servlet.http.HttpServletRequest http) Lists the project's webhooks.updateAlertWebhook(UUID projectId, UUID webhookId, @Valid UpdateAlertWebhookRequest request, jakarta.servlet.http.HttpServletRequest http) Updates a webhook.
-
Constructor Details
-
AlertWebhookController
-
-
Method Details
-
createAlertWebhook
@PostMapping public org.springframework.http.ResponseEntity<AlertWebhookView> createAlertWebhook(@PathVariable UUID projectId, @Valid @RequestBody @Valid CreateAlertWebhookRequest request, jakarta.servlet.http.HttpServletRequest http) Registers a webhook for the project. Returns 201 with aLocationheader. -
listAlertWebhooks
@GetMapping public List<AlertWebhookView> listAlertWebhooks(@PathVariable UUID projectId, jakarta.servlet.http.HttpServletRequest http) Lists the project's webhooks. The signing secret is never included. -
getAlertWebhook
@GetMapping("/{webhookId}") public AlertWebhookView getAlertWebhook(@PathVariable UUID projectId, @PathVariable UUID webhookId, jakarta.servlet.http.HttpServletRequest http) Returns one webhook, or 404 if the project or webhook does not exist or belongs to another tenant. -
updateAlertWebhook
@PutMapping("/{webhookId}") public AlertWebhookView updateAlertWebhook(@PathVariable UUID projectId, @PathVariable UUID webhookId, @Valid @RequestBody @Valid UpdateAlertWebhookRequest request, jakarta.servlet.http.HttpServletRequest http) Updates a webhook. Returns 404 if the project or webhook does not exist or belongs to another tenant. -
deleteAlertWebhook
@DeleteMapping("/{webhookId}") @ResponseStatus(NO_CONTENT) public void deleteAlertWebhook(@PathVariable UUID projectId, @PathVariable UUID webhookId, jakarta.servlet.http.HttpServletRequest http) Deletes a webhook. Returns 404 if the project or webhook does not exist or belongs to another tenant.
-