Search Results for

    Show / Hide Table of Contents
    View Source

    Class ByPathMediaApiController

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

    Constructors

    View Source

    ByPathMediaApiController(IPublishedMediaCache, IApiMediaWithCropsResponseBuilder, IApiMediaQueryService)

    Declaration
    public ByPathMediaApiController(IPublishedMediaCache publishedMediaCache, IApiMediaWithCropsResponseBuilder apiMediaWithCropsResponseBuilder, IApiMediaQueryService apiMediaQueryService)
    Parameters
    Type Name Description
    IPublishedMediaCache publishedMediaCache
    IApiMediaWithCropsResponseBuilder apiMediaWithCropsResponseBuilder
    IApiMediaQueryService apiMediaQueryService

    Methods

    View Source

    ByPath(String)

    Declaration
    public async Task<IActionResult> ByPath(string path)
    Parameters
    Type Name Description
    System.String path
    Returns
    Type Description
    Task<IActionResult>
    View Source

    ByPathV20(String)

    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.

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