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 SourceUseDeliveryApiEndpoints(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.