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

@@ -139,6 +139,7 @@ public class MediaTypeBuilder
var mediaType = builder
.WithAlias(alias)
.WithName(name)
.WithIcon("icon-picture")
.WithParentContentType(parent)
.AddPropertyGroup()
.WithAlias(propertyGroupAlias)