Interface IApiMediaWithCropsResponseBuilder
Provides methods for constructing API responses that include media items along with their crop information.
Namespace: Umbraco.Cms.Infrastructure.DeliveryApi
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IApiMediaWithCropsResponseBuilder
Methods
View SourceBuild(IPublishedContent)
Builds a response containing media information and crop data from the specified media content.
Declaration
IApiMediaWithCropsResponse Build(IPublishedContent media)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedContent | media | The media content to generate the response from. |
Returns
| Type | Description |
|---|---|
| IApiMediaWithCropsResponse | A response object containing media and crop information. |