You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -172,6 +176,65 @@ The `collectionIdOrAlias` is a generic collection identifier, which can be eithe
172
176
173
177
If no collection identifier is specified, the default collection identifier; `:root` will be used. If you want to search for a different collection, you must add the collection identifier as a parameter in the use case call.
174
178
179
+
#### Get Collection Storage Driver
180
+
181
+
Returns a [StorageDriver](../src/core/domain/models/StorageDriver.ts) instance describing the collection's assigned storage driver.
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
209
+
210
+
The optional `getEffective` parameter defaults to `false`. Set it to `true` to retrieve the effective storage driver after inheritance/default resolution.
211
+
212
+
#### Get Allowed Collection Storage Drivers
213
+
214
+
Returns an [AllowedStorageDrivers](../src/collections/domain/models/AllowedStorageDrivers.ts) object whose keys are driver labels and whose values are storage driver ids.
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
237
+
175
238
#### Get Collection Facets
176
239
177
240
Returns a [CollectionFacet](../src/collections/domain/models/CollectionFacet.ts) array containing the facets of the requested collection, given the collection identifier or alias.
@@ -442,6 +505,57 @@ The above example creates the new collection in the root collection since no col
442
505
443
506
The use case returns a number, which is the identifier of the created collection.
444
507
508
+
#### Set Collection Storage Driver
509
+
510
+
Assigns a storage driver to a collection by driver label and returns the backend success message.
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
532
+
533
+
The `driverLabel` parameter must match the storage driver's label, not its id.
534
+
535
+
#### Delete Collection Storage Driver
536
+
537
+
Clears the directly assigned storage driver from a collection so it falls back to inherited/default storage, and returns the backend success message.
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
558
+
445
559
#### Update a Collection
446
560
447
561
Updates an existing collection, given a collection identifier and a [CollectionDTO](../src/collections/domain/dtos/CollectionDTO.ts) including the updated collection data.
The `datasetId` parameter is a number for numeric identifiers or string for persistent identifiers.
1400
1514
1401
-
# <<<<<<< HEAD
1402
-
1403
1515
#### Get Dataset Templates
1404
1516
1405
1517
Returns a [DatasetTemplate](../src/datasets/domain/models/DatasetTemplate.ts) array containing the dataset templates of the requested collection, given the collection identifier or alias.
Returns a [StorageDriver](../src/datasets/domain/models/StorageDriver.ts) instance with storage driver configuration for a dataset, including properties like name, type, label, and upload/download capabilities.
1535
+
Returns a [StorageDriver](../src/core/domain/models/StorageDriver.ts) instance with storage driver configuration for a dataset, including properties like name, type, label, and upload/download capabilities.
0 commit comments