Create a service that accepts the necessary information and sends emails. It should provide an abstraction between two different email provider services. If one of them goes down, your service should quickly tolerate the outage and switch to a different provider without affecting its clients.
Email Provider Used:
- Clone the repository:
git clone https://github.com/allen-21/desafio-Uber-backend.git
-
Install dependencies with Maven
-
Update
application.properties
puting your AWS Credentials
aws.region=us-east-1
aws.accessKeyId=user
aws.secretKey=user
- Start the application with Maven
- The API will be accessible at http://localhost:8080
The API provides the following endpoints:
GET EMAIL
POST /api/email/send - Send a e-mail from your sender to the destination
BODY
{
"to": "[email protected]",
"subject": "teste",
"body": "teste"
}
Most of the content was taken from Fernanda Kipper's video, which I am using for my studies on clean architecture and microservices with Java.