# Object Storage

## GET /v1/object-storages

>

OpenAPI:

```json
{"openapi":"3.0.0","info":{"title":"Whaly API","version":"1.0"},"servers":[],"paths":{"/v1/object-storages":{"get":{"operationId":"DocumentsController_listAll","parameters":[{"name":"after","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"paging":{"type":"object","properties":{"next":{"type":"object","properties":{"after":{"type":"string"}},"required":["after"]}},"required":["next"]}},"required":["paging"]},{"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique ID"},"name":{"type":"string","description":"The name of the object storage"}},"required":["id","name"]}}}}]}}}}},"security":[{"bearer":[]}]}}},"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'"}}}}
```

## GET /v1/object-storages/{objectStorageId}

>

OpenAPI:

```json
{"openapi":"3.0.0","info":{"title":"Whaly API","version":"1.0"},"servers":[],"paths":{"/v1/object-storages/{objectStorageId}":{"get":{"operationId":"DocumentsController_findOne","parameters":[{"name":"objectStorageId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Unique ID"},"name":{"type":"string","description":"The name of the object storage"}},"required":["id","name"]}}}}},"security":[{"bearer":[]}]}}},"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'"}}}}
```

## POST /v1/object-storages/{objectStorageId}/upload

>

OpenAPI:

```json
{"openapi":"3.0.0","info":{"title":"Whaly API","version":"1.0"},"servers":[],"paths":{"/v1/object-storages/{objectStorageId}/upload":{"post":{"operationId":"DocumentsController_upload","parameters":[{"name":"path","required":false,"in":"query","schema":{"type":"string"}},{"name":"objectStorageId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"filePath":{"type":"string","description":"The path within the storage where the file has been stored"},"sizeKb":{"type":"number","description":"The stored file size in kb"},"storage":{"type":"string","description":"The Object Storage Id on which the file has been uploaded"}},"required":["filePath","sizeKb","storage"]}}}}},"security":[{"bearer":[]}]}}},"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'"}}}}
```

## GET /v1/object-storages/{objectStorageId}/download

>

OpenAPI:

```json
{"openapi":"3.0.0","info":{"title":"Whaly API","version":"1.0"},"servers":[],"paths":{"/v1/object-storages/{objectStorageId}/download":{"get":{"operationId":"DocumentsController_download","parameters":[{"name":"path","required":true,"in":"query","schema":{"type":"string"}},{"name":"objectStorageId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}]}}},"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Pass a Service Account Key as the Bearer token to authenticate. e.g. 'sk:xxxxxxx'"}}}}
```
