Send an Email by rest API where to, BCC and CC will be provided via api-payload.
Use design pattern
Used design pattern factory and strategy. Made sure to code to interface and not the concreate classes.
Use middleware to store the logging
Done, can check the loggermiddleware.go file.
You can use any framework or api provider in golang.
Used negroni and servemux. No framework as such.
In future we will use Amazon SES and sendgrid, take this part into consideration. Don’t
implement the coding for this but make some support coding so it could be easily
implement sendgrid or Amazon ses or any other providers.
There is a factory method that fetches the mailer. The handlers or user have no knowledge of the underlying provider.
Add normal API token authentication static (x-api)
Done. Created a middleware check xapiauthenticationmiddleware.
Create git repo and please add the documentation and instruction to deploy the demo in
any local machine.
Done.
How to deploy this app. Use the following commands.