Search Results for

    Show / Hide Table of Contents
    View Source

    Class ByIdMediaApiController

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

    Constructors

    View Source

    ByIdMediaApiController(IPublishedSnapshotAccessor, IApiMediaWithCropsResponseBuilder)

    Declaration
    public ByIdMediaApiController(IPublishedSnapshotAccessor publishedSnapshotAccessor, IApiMediaWithCropsResponseBuilder apiMediaWithCropsResponseBuilder)
    Parameters
    Type Name Description
    IPublishedSnapshotAccessor publishedSnapshotAccessor
    IApiMediaWithCropsResponseBuilder apiMediaWithCropsResponseBuilder

    Methods

    View Source

    ById(Guid)

    Declaration
    public async Task<IActionResult> ById(Guid id)
    Parameters
    Type Name Description
    Guid id
    Returns
    Type Description
    Task<IActionResult>
    View Source

    ByIdV20(Guid)

    Gets a media item by id.

    Declaration
    public async Task<IActionResult> ByIdV20(Guid id)
    Parameters
    Type Name Description
    Guid id

    The unique identifier 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
      • ByIdMediaApiController(IPublishedSnapshotAccessor, IApiMediaWithCropsResponseBuilder)
    • Methods
      • ById(Guid)
      • ByIdV20(Guid)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX