API built using Java, Java Spring and AWS Simple Email Service for the Uber Email Service Backend Challenge.
The aim of this project is to practice Java and Spring Framework with Clean Architecture concepts.
- Clone the repository:
git clone https://github.com/danvinicius/email-service-uber-challenge.git
-
Install dependencies with Maven
-
Update
application.properties
puting your AWS Credentials
spring.application.name=email-service
server.port=8081
aws.region=us-east-1
aws.accessKeyId=1111111
aws.secretKey=111111
api.email.request.sourceEmail=your-source-email
- Start the application with Maven
- The API will be accessible at http://localhost:8081
Request:
POST /api/email
Content-Type: application/json
{
"to": "someone@mail.com",
"subject": "subject of the e-mail",
"body": "body of the e-mail"
}
Response:
E-mail sent successfully
An error may occur if AWS credentials are not valid.
Response:
Error while sending e-mail
Install GIT and Java on your computer.