Search Results for

    Show / Hide Table of Contents
    View Source

    Class ApiContentPathResolver

    Default implementation of IApiContentPathResolver that resolves content by URL path for the Delivery API.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    public class ApiContentPathResolver : IApiContentPathResolver
    Remarks

    This class is left unsealed on purpose so it is extendable.

    Constructors

    View Source

    ApiContentPathResolver(IRequestRoutingService, IApiPublishedContentCache)

    Initializes a new instance of the ApiContentPathResolver class.

    Declaration
    public ApiContentPathResolver(IRequestRoutingService requestRoutingService, IApiPublishedContentCache apiPublishedContentCache)
    Parameters
    Type Name Description
    IRequestRoutingService requestRoutingService

    The request routing service.

    IApiPublishedContentCache apiPublishedContentCache

    The API published content cache.

    Methods

    View Source

    ResolveContentPath(string)

    Resolves published content from the specified URL path.

    Declaration
    public virtual IPublishedContent? ResolveContentPath(string path)
    Parameters
    Type Name Description
    string path

    The URL path to resolve.

    Returns
    Type Description
    IPublishedContent

    The published content at the specified path, or null if not found.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX