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 SourceApiContentPathResolver(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 SourceResolveContentPath(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 |