All URIs are relative to https://api.lab5e.com
Method | HTTP request | Description |
---|---|---|
deleteBlob | DELETE /span/collections/{collectionId}/blobs/{blobId} | Remove a blob stored on a collection |
listBlobs | GET /span/collections/{collectionId}/blobs | List the blobs for a collection |
open class func deleteBlob(collectionId: String, blobId: String, completion: @escaping (_ data: AnyCodable?, _ error: Error?) -> Void)
Remove a blob stored on a collection
Remove a blob stored on the collection.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import Span
let collectionId = "collectionId_example" // String |
let blobId = "blobId_example" // String |
// Remove a blob stored on a collection
BlobsAPI.deleteBlob(collectionId: collectionId, blobId: blobId) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | ||
blobId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func listBlobs(collectionId: String, limit: Int? = nil, completion: @escaping (_ data: ListBlobResponse?, _ error: Error?) -> Void)
List the blobs for a collection
Retrieve a list of all the blobs stored on this collection. Blobs are uploaded by the devices through one of the blob endpoints.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import Span
let collectionId = "collectionId_example" // String |
let limit = 987 // Int | (optional)
// List the blobs for a collection
BlobsAPI.listBlobs(collectionId: collectionId, limit: limit) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | ||
limit | Int | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]