Extensions on
Endpoint.Group.Saved
Properties
collections
var collections: Endpoint.Paginated<SavedCollection.Collection, String?, Error>
List all collections.
Returns
A valid Endpoint.Paginated
.
Methods
collection(_:)
func collection(_ identifier: String) -> Collection
A wrapper for collection-related endpoints.
Parameters
Name | Type | Description |
---|---|---|
identifier | String |
A valid |
Returns
A valid Collection
.
collection(_:)
func collection(_ collection: SavedCollection) -> Collection
A wrapper for collection-related endpoints.
Parameters
Name | Type | Description |
---|---|---|
collection | SavedCollection |
A valid |
Returns
A valid Collection
.
collection(_:)
func collection(_ identifier: String) -> Endpoint.Single<SavedCollection.Unit, Swift.Error>
A summary of the collection.
Parameters
Name | Type | Description |
---|---|---|
identifier | String |
A valid |
Returns
A valid Endpoint.Paginated
.
collection(_:)
@available(*, deprecated, message: "paging summary is no longer supported (removing in 6.0)")
func collection(_ identifier: String) -> Endpoint.Paginated<SavedCollection.Unit, String?, Swift.Error>
A summary of the collection.
Parameters
Name | Type | Description |
---|---|---|
identifier | String |
A valid |
Returns
A valid Endpoint.Paginated
.
collection(_:)
func collection(_ collection: SavedCollection) -> Endpoint.Single<SavedCollection.Unit, Swift.Error>
A summary of the collection.
Parameters
Name | Type | Description |
---|---|---|
collection | SavedCollection |
A valid |
Returns
A valid Endpoint.Paginated
.
collection(_:)
@available(*, deprecated, message: "paging summary is no longer supported (removing in 6.0)")
func collection(_ collection: SavedCollection) -> Endpoint.Paginated<SavedCollection.Unit, String?, Swift.Error>
A summary of the collection.
Parameters
Name | Type | Description |
---|---|---|
collection | SavedCollection |
A valid |
Returns
A valid Endpoint.Paginated
.