Class EmailApiController

java.lang.Object
com.bluebell.greenhouse.planter.controllers.email.EmailApiController

@RestController @RequestMapping("${bluebell.base.api.controller.endpoint}/email") @CrossOrigin(origins="*", methods={GET,DELETE,POST,PUT}) public class EmailApiController extends Object
API controller for sending emails.
Version:
3.0.5
Author:
Stephen Prizio
  • Constructor Details

    • EmailApiController

      public EmailApiController()
  • Method Details

    • postSendFailedApiEmail

      @PostMapping("/failed-api") public org.springframework.http.ResponseEntity<String> postSendFailedApiEmail(@RequestParam(name="endpoint") String endpoint, @RequestParam(name="errorCode",required=false,defaultValue="400") int errorCode, @RequestBody(required=false) String payload)
      Sends an email describing a failure for the given system name with the given error code.
      Parameters:
      endpoint - failing endpoint
      errorCode - error code
      payload - payload
      Returns:
      ResponseEntity