Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeliveryApiApplicationBuilderExtensions

    Microsoft.AspNetCore.Builder.IApplicationBuilder extensions for the Umbraco Delivery API.

    Inheritance
    object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Cms.Api.Delivery.dll
    Syntax
    public static class DeliveryApiApplicationBuilderExtensions

    Methods

    View Source

    UseDeliveryApiEndpoints(IUmbracoEndpointBuilderContext)

    Sets up routes for the Umbraco Delivery API.

    Declaration
    public static IUmbracoEndpointBuilderContext UseDeliveryApiEndpoints(this IUmbracoEndpointBuilderContext builder)
    Parameters
    Type Name Description
    IUmbracoEndpointBuilderContext builder

    The Umbraco endpoint builder context.

    Returns
    Type Description
    IUmbracoEndpointBuilderContext

    The IUmbracoEndpointBuilderContext for chaining.

    Remarks

    This method maps attribute-routed controllers including the Delivery API endpoints. Call this when using AddDeliveryApi() without AddBackOffice(), as the backoffice endpoints normally handle the controller mapping.

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