Class S3FileUploadController

java.lang.Object
org.diabetestechnology.drh.service.http.pg.ux.S3FileUploadController

@Controller public class S3FileUploadController extends Object
  • Constructor Details

    • S3FileUploadController

      public S3FileUploadController(S3FileUploadService s3FileUploadService)
  • Method Details

    • uploadFile

      @PostMapping("/file/upload") @ResponseBody public Response uploadFile(@RequestPart("file") @Nonnull org.springframework.web.multipart.MultipartFile file) throws IOException
      Throws:
      IOException
    • downloadParticipantTemplate

      @GetMapping("/participants/file/template") @ResponseBody public org.springframework.http.ResponseEntity<byte[]> downloadParticipantTemplate(@RequestParam(required=false,defaultValue="csv") String format) throws IOException
      Throws:
      IOException