Skip to content

feat: CCP-6616 - Add events api controller - #359

Open
mgtennant wants to merge 16 commits into
mainfrom
CCP-6616_add-events-api-controller
Open

mgtennant wants to merge 16 commits into
mainfrom
CCP-6616_add-events-api-controller

Conversation

@mgtennant

@mgtennant mgtennant commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  • Add an events controller (/api/v1/events) so events can be listed, created, updated and have their channels configured through the API with an API key. Sends stay in the notify controller.
  • Update notifyevent routes in the notify controller to match the README.
    • /notifyevent performs a full event notification send.
    • Removed /notifyevent/preview, previews are now done by including the preview param.
    • /notifyevent?preview=true returns the rendered content and resolved recipients without sending.
    • Both are behind the events feature flag and now return a 403 error when the flag is off.
  • Add Swagger documentation (summaries, examples, responses) to the events and notifyevent routes. Both controllers stay hidden from Swagger for now.

Fixes CCP-6616

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Documentation update

How Has This Been Tested?

  • New unit tests
  • New integrated tests
  • New component tests
  • New end-to-end tests
  • New user flow tests
  • No new tests are required
  • Manual tests (description below)
  • Updated existing tests

Checklist

  • I have read the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have already been accepted and merged

Further comments


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant