Class StorageController


  • @RestController
    @RequestMapping("/api/v1/storage")
    public class StorageController
    extends Object
    This class provides signed urls REST endpoints
    • Constructor Detail

      • StorageController

        public StorageController​(StorageService storageService)
        Constructs the storage controller
        Parameters:
        storageService - the storage service implementation
    • Method Detail

      • createUploadSignedUrl

        @PutMapping("createSignedUrl")
        public String createUploadSignedUrl​(@RequestParam
                                            String bucketName,
                                            @RequestParam
                                            String blobName,
                                            @RequestParam
                                            String mimetype,
                                            @RequestParam
                                            String expiresIn)
                                     throws IOException,
                                            ObjectNotFoundException
        This endpoint provides signed urls to upload objects
        Parameters:
        bucketName - the bucket's name
        blobName - the object's name
        mimetype - the object's mimetype
        expiresIn - the object's expiration info
        Throws:
        IOException
        ObjectNotFoundException