Class ByRouteContentApiController
Inheritance
System.Object
Namespace: Umbraco.Cms.Api.Delivery.Controllers
Assembly: Umbraco.Cms.Api.Delivery.dll
Syntax
public class ByRouteContentApiController : ContentApiItemControllerBase
Constructors
View SourceByRouteContentApiController(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 |
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 |
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 SourceByRoute(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.