- Receives
POST
request on themail-service-rpc
endpoint; - produces and consumes
application/json
data only; - answers
200
if everything went well,400
elsewhere.
The services follows a RPC approach, and handle only one operation: send a mail.
Input: Mail Request
- sender : string
- recipient : string
- object : string
- message : string
Output: Mail Status
- cause : string
Input:
{
"sender": "[email protected]",
"recipient": "[email protected]",
"object": "Asking for vacation",
"message": "Hi ..."
}
Output:
{
"cause": "ok"
}