View Source
Inheritance
System.Object
Assembly: Umbraco.Cms.Api.Delivery.dll
public class ByPathMediaApiController : MediaApiControllerBase
Constructors
View Source
Declaration
public ByPathMediaApiController(IPublishedSnapshotAccessor publishedSnapshotAccessor, IApiMediaWithCropsResponseBuilder apiMediaWithCropsResponseBuilder, IApiMediaQueryService apiMediaQueryService)
Parameters
| Type |
Name |
Description |
| IPublishedSnapshotAccessor |
publishedSnapshotAccessor |
|
| IApiMediaWithCropsResponseBuilder |
apiMediaWithCropsResponseBuilder |
|
| IApiMediaQueryService |
apiMediaQueryService |
|
Methods
View Source
Declaration
public async Task<IActionResult> ByPath(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
| Type |
Description |
| Task<IActionResult> |
|
View Source
Gets a media item by its path.
Declaration
public async Task<IActionResult> ByPathV20(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
The path of the media item.
|
Returns
| Type |
Description |
| Task<IActionResult> |
The media item or not found result.
|