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 Details

  • 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 a Location header.
    • listAlertWebhooks

      @GetMapping public List<AlertWebhookView> listAlertWebhooks(@PathVariable UUID projectId)
      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.