diff --git a/src/main/java/eu/eudat/file/transformer/interfaces/FileTransformerController.java b/src/main/java/eu/eudat/file/transformer/interfaces/FileTransformerController.java index da14eac..bbcd8bf 100644 --- a/src/main/java/eu/eudat/file/transformer/interfaces/FileTransformerController.java +++ b/src/main/java/eu/eudat/file/transformer/interfaces/FileTransformerController.java @@ -14,10 +14,11 @@ import org.springframework.web.bind.annotation.*; public interface FileTransformerController { - @PostMapping("/export/dmp/{variant}") - FileEnvelopeModel exportDmp(@RequestBody DmpModel dmpDepositModel, @PathVariable("variant") String variant) throws Exception; + @PostMapping("/export/dmp") + FileEnvelopeModel exportDmp(@RequestBody DmpModel dmpDepositModel, @RequestParam(value = "format",required = false)String format) throws Exception ; + @PostMapping("/export/description") - FileEnvelopeModel exportDescription(@RequestBody DescriptionModel descriptionModel, @RequestParam(value = "format",required = false)String format, @RequestParam(value = "descriptionId",required = false) String descriptionId) throws Exception; + FileEnvelopeModel exportDescription(@RequestBody DescriptionModel descriptionModel, @RequestParam(value = "format",required = false)String format) throws Exception; @PostMapping("/import/dmp") DmpModel importFileToDmp(@RequestBody FileEnvelopeModel fileEnvelope);