User Story - Business Need
This is just allowing the path to be either /v2/notifications/* or /legacy/v2/notifications/*. The flow is controlled via the ALB currently routing the legacy route to ENP.
The bulk of the ticket will be just adding the email endpoint.
There are existing Pydantic models (request / response) that should be reviewed/verified to maintain parity with notification-api
- V2PostEmailRequestModel
- V2PostEmailResponseModel
Note: Look into PersonalisationFileObject
# Note: Annotated strEnum SHOULD work but doesn't here
# a) This object is used for email attachments.
# b) This should be revisitied when email is worked.
# sending_method: Annotated[AttachmentType, Field(strict=False)] | None = None
Much of this work is already in place from previous work wrapping SMS notifications.
- notification and legacy/notification routers with auth and limiting
- validation methods
- existing Pydantic request/response models (need review)
User Story(ies)
As a VA Notify dev
I want to be able to make an email notification request to ENP using the legacy route
So that we can successfully migrate from notification-api to va-enp-api
Additional Info and Resources
Acceptance Criteria
QA Considerations
Validation of request and response models
Potential Dependencies
Out of Scope
This ticket is not creating the notification or implementing the Celery task queueing for delivery which is handled in a follow-up ticket.
User Story - Business Need
This is just allowing the path to be either /v2/notifications/* or /legacy/v2/notifications/*. The flow is controlled via the ALB currently routing the legacy route to ENP.
The bulk of the ticket will be just adding the email endpoint.
There are existing Pydantic models (request / response) that should be reviewed/verified to maintain parity with notification-api
Note: Look into PersonalisationFileObject
Much of this work is already in place from previous work wrapping SMS notifications.
User Story(ies)
As a VA Notify dev
I want to be able to make an email notification request to ENP using the legacy route
So that we can successfully migrate from notification-api to va-enp-api
Additional Info and Resources
Acceptance Criteria
QA Considerations
Validation of request and response models
Potential Dependencies
Out of Scope
This ticket is not creating the notification or implementing the Celery task queueing for delivery which is handled in a follow-up ticket.