Search Results for

    Show / Hide Table of Contents
    View Source

    Class ByPathMediaApiController

    Inheritance
    System.Object
    DeliveryApiControllerBase
    MediaApiControllerBase
    Namespace: Umbraco.Cms.Api.Delivery.Controllers
    Assembly: Umbraco.Cms.Api.Delivery.dll
    Syntax
    public class ByPathMediaApiController : MediaApiControllerBase

    Constructors

    View Source

    ByPathMediaApiController(IPublishedSnapshotAccessor, IApiMediaWithCropsResponseBuilder, IApiMediaQueryService)

    Declaration
    public ByPathMediaApiController(IPublishedSnapshotAccessor publishedSnapshotAccessor, IApiMediaWithCropsResponseBuilder apiMediaWithCropsResponseBuilder, IApiMediaQueryService apiMediaQueryService)
    Parameters
    Type Name Description
    IPublishedSnapshotAccessor publishedSnapshotAccessor
    IApiMediaWithCropsResponseBuilder apiMediaWithCropsResponseBuilder
    IApiMediaQueryService apiMediaQueryService

    Methods

    View Source

    ByPath(String)

    Gets a media item by its path.

    Declaration
    public async Task<IActionResult> ByPath(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.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ByPathMediaApiController(IPublishedSnapshotAccessor, IApiMediaWithCropsResponseBuilder, IApiMediaQueryService)
    • Methods
      • ByPath(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX