Class DocumentController
java.lang.Object
de.adorsys.datasafe.rest.impl.controller.DocumentController
User private space REST api.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlistDocuments(String user, String password, String storageId, String path) lists files in user's private space.voidreadDocument(String user, String password, String storageId, String path, jakarta.servlet.http.HttpServletResponse response) Reads user's private file.voidremoveDocument(String user, String password, String storageId, String path) deletes files from user's private space.voidwriteDocument(String user, String password, String storageId, String path, org.springframework.web.multipart.MultipartFile file) Writes file to user's private space.
-
Constructor Details
-
DocumentController
public DocumentController()
-
-
Method Details
-
readDocument
@GetMapping(value="/document/{*path}", produces="application/octet-stream") public void readDocument(@RequestHeader String user, @RequestHeader String password, @RequestHeader(defaultValue="DEFAULT") String storageId, @PathVariable String path, jakarta.servlet.http.HttpServletResponse response) Reads user's private file. -
writeDocument
@PutMapping(value="/document/{*path}", consumes="multipart/form-data") public void writeDocument(@RequestHeader String user, @RequestHeader String password, @RequestHeader(defaultValue="DEFAULT") String storageId, @PathVariable String path, @RequestParam("file") org.springframework.web.multipart.MultipartFile file) Writes file to user's private space. -
listDocuments
@GetMapping("/documents/{*path}") public List<String> listDocuments(@RequestHeader String user, @RequestHeader String password, @RequestHeader(defaultValue="DEFAULT") String storageId, @PathVariable(required=false) String path) lists files in user's private space. -
removeDocument
@DeleteMapping("/document/{*path}") public void removeDocument(@RequestHeader String user, @RequestHeader String password, @RequestHeader(defaultValue="DEFAULT") String storageId, @PathVariable String path) deletes files from user's private space.
-