chore[aou-1869]: refactor export bibliograpy endpoint
1 unresolved thread
1 unresolved thread
refactor controller to return a stream instead of string.
Closes: AOU-1869
Merge request reports
Activity
assigned to @Florent.Poittevin
114 118 if (!results.getContent().isEmpty()) { 115 119 result = this.exportMetadataService.exportMetadata(exportFormat, results.getContent()); 116 120 } 121 117 122 HttpHeaders headers = this.getHeaders(exportFormat); 118 return new ResponseEntity<>(result, headers, HttpStatus.OK); 123 124 // convert the string result to Inputstream 125 InputStream is = new BufferedInputStream(new ByteArrayInputStream(result.getBytes(StandardCharsets.UTF_8))); 126 127 // build the responseBody as stream 128 StreamingResponseBody responseBody = outputStream -> { changed this line in version 2 of the diff
added 4 commits
-
c566022f...6f7427e8 - 3 commits from branch
master
- fdab968e - refactor: bibliograpy
-
c566022f...6f7427e8 - 3 commits from branch
Please register or sign in to reply