Search Results for

    Show / Hide Table of Contents
    View Source

    Class ByRouteContentApiController

    Inheritance
    System.Object
    DeliveryApiControllerBase
    ContentApiControllerBase
    ContentApiItemControllerBase
    Namespace: Umbraco.Cms.Api.Delivery.Controllers
    Assembly: Umbraco.Cms.Api.Delivery.dll
    Syntax
    public class ByRouteContentApiController : ContentApiItemControllerBase

    Constructors

    View Source

    ByRouteContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IPublicAccessService, IRequestRoutingService, IRequestRedirectService, IRequestPreviewService)

    Declaration
    public ByRouteContentApiController(IApiPublishedContentCache apiPublishedContentCache, IApiContentResponseBuilder apiContentResponseBuilder, IPublicAccessService publicAccessService, IRequestRoutingService requestRoutingService, IRequestRedirectService requestRedirectService, IRequestPreviewService requestPreviewService)
    Parameters
    Type Name Description
    IApiPublishedContentCache apiPublishedContentCache
    IApiContentResponseBuilder apiContentResponseBuilder
    IPublicAccessService publicAccessService
    IRequestRoutingService requestRoutingService
    IRequestRedirectService requestRedirectService
    IRequestPreviewService requestPreviewService
    View Source

    ByRouteContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IPublicAccessService, IRequestRoutingService, IRequestRedirectService, IRequestPreviewService, IRequestMemberAccessService)

    Declaration
    public ByRouteContentApiController(IApiPublishedContentCache apiPublishedContentCache, IApiContentResponseBuilder apiContentResponseBuilder, IPublicAccessService publicAccessService, IRequestRoutingService requestRoutingService, IRequestRedirectService requestRedirectService, IRequestPreviewService requestPreviewService, IRequestMemberAccessService requestMemberAccessService)
    Parameters
    Type Name Description
    IApiPublishedContentCache apiPublishedContentCache
    IApiContentResponseBuilder apiContentResponseBuilder
    IPublicAccessService publicAccessService
    IRequestRoutingService requestRoutingService
    IRequestRedirectService requestRedirectService
    IRequestPreviewService requestPreviewService
    IRequestMemberAccessService requestMemberAccessService
    View Source

    ByRouteContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IRequestRoutingService, IRequestRedirectService, IRequestPreviewService, IRequestMemberAccessService)

    Declaration
    public ByRouteContentApiController(IApiPublishedContentCache apiPublishedContentCache, IApiContentResponseBuilder apiContentResponseBuilder, IRequestRoutingService requestRoutingService, IRequestRedirectService requestRedirectService, IRequestPreviewService requestPreviewService, IRequestMemberAccessService requestMemberAccessService)
    Parameters
    Type Name Description
    IApiPublishedContentCache apiPublishedContentCache
    IApiContentResponseBuilder apiContentResponseBuilder
    IRequestRoutingService requestRoutingService
    IRequestRedirectService requestRedirectService
    IRequestPreviewService requestPreviewService
    IRequestMemberAccessService requestMemberAccessService

    Methods

    View Source

    ByRoute(String)

    Gets a content item by route.

    Declaration
    public async Task<IActionResult> ByRoute(string path = "")
    Parameters
    Type Name Description
    System.String path

    The path to the content item.

    Returns
    Type Description
    Task<IActionResult>

    The content item or not found result.

    Remarks

    Optional URL segment for the root content item can be added through the "start-item" header.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ByRouteContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IPublicAccessService, IRequestRoutingService, IRequestRedirectService, IRequestPreviewService)
      • ByRouteContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IPublicAccessService, IRequestRoutingService, IRequestRedirectService, IRequestPreviewService, IRequestMemberAccessService)
      • ByRouteContentApiController(IApiPublishedContentCache, IApiContentResponseBuilder, IRequestRoutingService, IRequestRedirectService, IRequestPreviewService, IRequestMemberAccessService)
    • Methods
      • ByRoute(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX