#E-mail trigger service
git flow guide("https://danielkummer.github.io/git-flow-cheatsheet/")
All responses will have the form
{
"data": "Mixed type holding the content of the response",
"message": "Description of what happened"
}
Subsequent response definitions will only detail the exprected value of the data field
Definition
GET /sent
Response
200 OK
on success
[
{
"identifier": "1",
"name": "Rodolfo Lubeck",
"email": "[email protected]",
"sentDate": "27/05/2020"
},
{
"identifier": "2",
"name": "Rodolfo Lubeck",
"email": "[email protected]",
"sentDate": "27/05/2020"
}
]
Definition
POST /send
Arguments
"identifier":int
a unique identifier of database sequence"name":string
name of the user who will receive the contact"email":string
contact e-mail of the user who will receive the contact"sendDate:date
date the email was sent
Response
201 Created
on success
{
"identifier": "2",
"name": "Rodolfo Freitas",
"email": "[email protected]",
"sendDate": "27/05/2020"
}
GET /sent/int:<identifier>
Response
404 Not Found
if the e-mail does not exist200 OK
on success
{
"identifier": "2",
"name": "Rodolfo Freitas",
"email": "[email protected]",
"sendDate": "27/05/2020"
}