Class S3FileUploadController
java.lang.Object
org.diabetestechnology.drh.service.http.pg.ux.S3FileUploadController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<byte[]> downloadParticipantTemplate
(String format) uploadFile
(org.springframework.web.multipart.MultipartFile file)
-
Constructor Details
-
S3FileUploadController
-
-
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
-