Class ByIdsMediaApiController
Namespace: Umbraco.Cms.Api.Delivery.Controllers
Assembly: Umbraco.Cms.Api.Delivery.dll
Syntax
public class ByIdsMediaApiController : MediaApiControllerBase
Constructors
View SourceByIdsMediaApiController(IPublishedSnapshotAccessor, IApiMediaWithCropsResponseBuilder)
Declaration
public ByIdsMediaApiController(IPublishedSnapshotAccessor publishedSnapshotAccessor, IApiMediaWithCropsResponseBuilder apiMediaWithCropsResponseBuilder)
Parameters
Type | Name | Description |
---|---|---|
IPublishedSnapshotAccessor | publishedSnapshotAccessor | |
IApiMediaWithCropsResponseBuilder | apiMediaWithCropsResponseBuilder |
Methods
View SourceItem(HashSet<Guid>)
Gets media items by ids.
Declaration
public async Task<ActionResult> Item(HashSet<Guid> ids)
Parameters
Type | Name | Description |
---|---|---|
HashSet<Guid> | ids | The unique identifiers of the media items to retrieve. |
Returns
Type | Description |
---|---|
Task<ActionResult> | The media items. |