update interface

This commit is contained in:
Efstratios Giannopoulos 2024-03-06 15:59:10 +02:00
parent 15fec7167c
commit 44e057d2ee
1 changed files with 4 additions and 3 deletions

View File

@ -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);