Class ApiContentResponse
Represents a content response in the Delivery API that includes culture-specific routes.
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public class ApiContentResponse : ApiContent, IApiContentResponse, IApiContent, IApiElement
Constructors
View SourceApiContentResponse(Guid, string, string, DateTime, DateTime, IApiContentRoute, IDictionary<string, object?>, IDictionary<string, IApiContentRoute>)
Initializes a new instance of the ApiContentResponse class.
Declaration
public ApiContentResponse(Guid id, string name, string contentType, DateTime createDate, DateTime updateDate, IApiContentRoute route, IDictionary<string, object?> properties, IDictionary<string, IApiContentRoute> cultures)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | The unique identifier of the content. |
| string | name | The name of the content. |
| string | contentType | The content type alias. |
| DateTime | createDate | The date and time when the content was created. |
| DateTime | updateDate | The date and time when the content was last updated. |
| IApiContentRoute | route | The route information for the content. |
| IDictionary<string, object> | properties | The property values of the content. |
| IDictionary<string, IApiContentRoute> | cultures | The culture-specific routes for the content. |
Properties
View SourceCultures
Gets the culture-specific routes for the content, keyed by culture code.
Declaration
[JsonPropertyOrder(100)]
public IDictionary<string, IApiContentRoute> Cultures { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, IApiContentRoute> |
Remarks
This property is serialized last for better readability of API responses.