The Back-End project challenge is to create an API that sync contacts from MockAPI to Mailchimp. Trio suggested implementing the project with Java, as it's the language I have the most experience with, but I will implement it in Golang, as a challenge.
The API will cover the following objects:
GET /contacts/sync to trigger the integration/contacts/sync endpoint should return the list of synced contacts in JSON following this structure:{
"syncedContacts": 1, // total synced contacts
"contacts": [
{
"firstName": "Amelia",
"lastName": "Earhart",
"email": "[email protected]",
},
]
}
First of all, I started to studing the Mailchimp API, witch I didn't have any experience. So to complete the chalenge to add the email in a list, I found all these API's that I must to use to code the project.
I decided to use Golang as programming language, Gin as HTTP WebServer and AWS API-Gateway and Lambdas, for a serverless deploy. To deploy the HTTP Server I used the https://render.com, witch was very simple to deploy the Golang Server.