Sending mail and log it into database
Request :
{
"email" : "testing@example.com",
"token" : "SecretToken"
}
Response
200 Ok
{
"email" : "testing@example.com"
}
400 Bad Request
{
"error" : "the function is returning error"
}
- Set your config in
config.json
file go run main.go
<env> go test ./...