Upload a File
put
/ohfapi/storage/v1.0/storage/{bucketName}/{objectName}
This API uploads a file to the storage securely with a valid data file extension.
Request
Path Parameters
-
bucketName: string
parameter that refers to the logical grouping of files in the storage.
-
objectName: string
name of the file that is uploaded.
File to be uploaded
Root Schema : InputStream
Type:
object
Security
-
basicAuth: basic
Type:
basic
Response
Supported Media Types
- application/json
200 Response
Successful operation
Examples
{ "name" : "bucketzip/testzipfile2", "self" : "/v1.0/storage/bucketzip/testzipfile2", "size" : 20770844, "checksum" : "86f9260ac8d321922eed2b842806af2e" }