How to run this application?
- Clone this repository on your local machine
- Open the cloned folder as an IntelliJ Idea project
- Auto-import packages
- Run the application
API
Base url: http://localhost:8080/
- Count all unique emails
path: api/emails/count-unique
Request method: POST
Payload: List<String>
Example:
[
"test.email@gmail.com",
"test.email+spam@gmail.com",
"testemail@gmail.com"
]
Response:
Success Response:
{
"status": 200,
"message": "Emails Validated.",
"data": Count of Unique emails
}
Failure Response:
{
"status": 500,
"message": "Error Message",
"data": null
}