the mailer service

Our first service is a basic blocking spring boot java rest service that receives a simple request to email some recipient.

The service should:

Component Detail

SendgridController (Controller) 1. accepts the json request 2. passes it to the SendgridHandler 3. Receives a Response and displays it ot the user

SendgridHandler (Handler) 1. receives the json request from the controller 2. validates the json 3. passes it as a SendgridRequest object to the SendgridMailer 4. receives the Response from the Mailer and sends it back to the Controller

SendgridMailer (Mailer) 1. receives the SendgridRequest from the Handler 2. validates the data 3. reformats it to a SendGrid Request object 4. Sends the Request to the SendGrid API 5. receives the Response from the API and sends it back to the Handler

Last updated

Was this helpful?