From 44e057d2ee4804164804e465cc4911e8157f8240 Mon Sep 17 00:00:00 2001 From: sgiannopoulos Date: Wed, 6 Mar 2024 15:59:10 +0200 Subject: [PATCH] update interface --- .../transformer/interfaces/FileTransformerController.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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);