File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
curation-web/src/main/java/eu/clarin/cmdi/curation/web/controller Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 2121import org .springframework .http .MediaType ;
2222import org .springframework .http .ResponseEntity ;
2323import org .springframework .stereotype .Controller ;
24- import org .springframework .web .bind .annotation .GetMapping ;
25- import org .springframework .web .bind .annotation .PathVariable ;
26- import org .springframework .web .bind .annotation .RequestMapping ;
27- import org .springframework .web .bind .annotation .RequestParam ;
24+ import org .springframework .web .bind .annotation .*;
2825import org .springframework .web .servlet .mvc .method .annotation .StreamingResponseBody ;
2926
3027import javax .xml .transform .Source ;
@@ -71,7 +68,7 @@ public class Download {
7168 * @param format the format
7269 * @return the file
7370 */
74- @ GetMapping ( "/{curationEntityType}/{reportName}" )
71+ @ RequestMapping ( value = "/{curationEntityType}/{reportName}" , method = { RequestMethod . GET , RequestMethod . POST } )
7572 public ResponseEntity <StreamingResponseBody > getFile (@ PathVariable ("curationEntityType" ) String curationEntityType ,
7673 @ PathVariable ("reportName" ) String reportName ,
7774 @ RequestParam (value = "format" , required = false , defaultValue = "xml" ) String format ) {
You can’t perform that action at this time.
0 commit comments