API que faz a validação de email e ainda utiliza uma blacklist de palavras inapropriadas.
Docker (https://www.docker.com/)
curl -XPOST '127.0.0.1:5000/api/v1/' -H 'Content-Type: application/json' -d '{"emailAddress":"[email protected]","clientId":"MEUID","tokenId":"1234567890"}'
{
"emailAddress": "[email protected]",
"status": 1
}
curl -XPOST '127.0.0.1:5000/api/v1/' -H 'Content-Type: application/json' -d '{"emailAddress":"[email protected]","clientId":"MEUID","tokenId":"1234567890"}'
{
"bounce": {
"code": 511,
"detail": "Bad destination mailbox address",
"type": 1
},
"emailAddress": "[email protected]",
"status": 2
}
curl -XPOST '127.0.0.1:5000/api/v1/' -H 'Content-Type: application/json' -d '{"emailAddress":"testegmail.com","clientId":"MEUID","tokenId":"1234567890"}'
{
"bounce": {
"code": 990,
"detail": "Invalid mail format",
"type": 1
},
"emailAddress": "testegmail.com",
"status": 2
}