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) Registers a webhook for the project.voiddeleteAlertWebhook(UUID projectId, UUID webhookId) Deletes a webhook.getAlertWebhook(UUID projectId, UUID webhookId) Returns one webhook, or 404 if the project or webhook does not exist.listAlertWebhooks(UUID projectId) Lists the project's webhooks.updateAlertWebhook(UUID projectId, UUID webhookId, @Valid UpdateAlertWebhookRequest request) 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) Registers a webhook for the project. Returns 201 with aLocationheader. -
listAlertWebhooks
Lists the project's webhooks. The signing secret is never included. -
getAlertWebhook
@GetMapping("/{webhookId}") public AlertWebhookView getAlertWebhook(@PathVariable UUID projectId, @PathVariable UUID webhookId) Returns one webhook, or 404 if the project or webhook does not exist. -
updateAlertWebhook
@PutMapping("/{webhookId}") public AlertWebhookView updateAlertWebhook(@PathVariable UUID projectId, @PathVariable UUID webhookId, @Valid @RequestBody @Valid UpdateAlertWebhookRequest request) Updates a webhook. Returns 404 if the project or webhook does not exist. -
deleteAlertWebhook
@DeleteMapping("/{webhookId}") @ResponseStatus(NO_CONTENT) public void deleteAlertWebhook(@PathVariable UUID projectId, @PathVariable UUID webhookId) Deletes a webhook. Returns 404 if the project or webhook does not exist.
-