Skip to content

Commit e8433fa

Browse files
committed
needs to accept post request from validator
1 parent dfa666c commit e8433fa

File tree

1 file changed

+2
-5
lines changed
  • curation-web/src/main/java/eu/clarin/cmdi/curation/web/controller

1 file changed

+2
-5
lines changed

curation-web/src/main/java/eu/clarin/cmdi/curation/web/controller/Download.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
import org.springframework.http.MediaType;
2222
import org.springframework.http.ResponseEntity;
2323
import 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.*;
2825
import org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody;
2926

3027
import 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) {

0 commit comments

Comments
 (0)