Class VersionController
java.lang.Object
de.adorsys.datasafe.rest.impl.controller.VersionController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteVersionedDocument(String user, String password, String storageId, String path) deletes latest version of file from user's private space.listVersionedDocuments(String user, String password, String storageId, String path) lists latest versions of files in user's private space.voidreadVersionedDocument(String user, String password, String storageId, String path, jakarta.servlet.http.HttpServletResponse response) reads latest version of file from user's private space.versionsOf(String user, String password, String storageId, String path) list of file versions.voidwriteVersionedDocument(String user, String password, String storageId, String path, org.springframework.web.multipart.MultipartFile file) writes latest version of file to user's private space.
-
Constructor Details
-
VersionController
public VersionController()
-
-
Method Details
-
listVersionedDocuments
@GetMapping(value="/versioned/{*path}", produces="application/json") public List<String> listVersionedDocuments(@RequestHeader String user, @RequestHeader String password, @RequestHeader(defaultValue="DEFAULT") String storageId, @PathVariable(required=false) String path) lists latest versions of files in user's private space. -
readVersionedDocument
@GetMapping(value="/versioned/{*path}", produces="application/octet-stream") public void readVersionedDocument(@RequestHeader String user, @RequestHeader String password, @RequestHeader(defaultValue="DEFAULT") String storageId, @PathVariable String path, jakarta.servlet.http.HttpServletResponse response) reads latest version of file from user's private space. -
writeVersionedDocument
@PutMapping(value="/versioned/{*path}", consumes="multipart/form-data") public void writeVersionedDocument(@RequestHeader String user, @RequestHeader String password, @RequestHeader(defaultValue="DEFAULT") String storageId, @PathVariable String path, @RequestParam("file") org.springframework.web.multipart.MultipartFile file) writes latest version of file to user's private space. -
deleteVersionedDocument
@DeleteMapping("/versioned/{*path}") public void deleteVersionedDocument(@RequestHeader String user, @RequestHeader String password, @RequestHeader(defaultValue="DEFAULT") String storageId, @PathVariable String path) deletes latest version of file from user's private space. -
versionsOf
@GetMapping(value="/versions/list/{*path}", produces="application/json") public List<String> versionsOf(@RequestHeader String user, @RequestHeader String password, @RequestHeader(defaultValue="DEFAULT") String storageId, @PathVariable(required=false) String path) list of file versions.
-