Class ApiContentRoute
Represents a route to content in the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public sealed class ApiContentRoute : IApiContentRoute
Constructors
View SourceApiContentRoute(string, ApiContentStartItem)
Initializes a new instance of the ApiContentRoute class.
Declaration
public ApiContentRoute(string path, ApiContentStartItem startItem)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The URL path of the content. |
| ApiContentStartItem | startItem | The start item for this route. |
Properties
View SourcePath
Gets the URL path of the content.
Declaration
public string Path { get; }
Property Value
| Type | Description |
|---|---|
| string |
QueryString
Gets or sets the query string associated with the route.
Declaration
public string? QueryString { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StartItem
Gets the start item for this route.
Declaration
public IApiContentStartItem StartItem { get; }
Property Value
| Type | Description |
|---|---|
| IApiContentStartItem |