Updated management API endpoint and model for data type references to align with that used for documents, media etc. (#18905)

* Updated management API endpoint and model for data type references to align with that used for documents, media etc.

* Refactoring.

* Update src/Umbraco.Core/Constants-ReferenceTypes.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fixed typos.

* Added id to tracked reference content type response.

* Updated OpenApi.json.

* Added missing updates.

* Renamed model and constants from code review feedback.

* Fix typo

* Fix multiple enumeration

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: mole <nikolajlauridsen@protonmail.ch>
This commit is contained in:
Andy Butland
2025-04-04 15:10:06 +02:00
committed by GitHub
parent fd77074d57
commit 1f4c19d484
21 changed files with 591 additions and 8 deletions

View File

@@ -23,6 +23,9 @@ public class RelationItem
[DataMember(Name = "published")]
public bool? NodePublished { get; set; }
[DataMember(Name = "contentTypeKey")]
public Guid ContentTypeKey { get; set; }
[DataMember(Name = "icon")]
public string? ContentTypeIcon { get; set; }

View File

@@ -1,15 +1,19 @@
namespace Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Models;
public class RelationItemModel
{
public Guid NodeKey { get; set; }
public string? NodeAlias { get; set; }
public string? NodeName { get; set; }
public string? NodeType { get; set; }
public bool? NodePublished { get; set; }
public Guid ContentTypeKey { get; set; }
public string? ContentTypeIcon { get; set; }
public string? ContentTypeAlias { get; set; }