Adds new endpoint to DataTypeController to return the correct data and wires that up to angular
This commit is contained in:
36
src/Umbraco.Web/Models/ContentEditing/DataTypeReferences.cs
Normal file
36
src/Umbraco.Web/Models/ContentEditing/DataTypeReferences.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Umbraco.Web.Models.ContentEditing
|
||||
{
|
||||
[DataContract(Name = "dataTypeUsages", Namespace = "")]
|
||||
public class DataTypeReferences
|
||||
{
|
||||
[DataMember(Name = "documentTypes")]
|
||||
public IEnumerable<ContentTypeReferences> DocumentTypes { get; set; } = Enumerable.Empty<ContentTypeReferences>();
|
||||
|
||||
[DataMember(Name = "mediaTypes")]
|
||||
public IEnumerable<ContentTypeReferences> MediaTypes { get; set; } = Enumerable.Empty<ContentTypeReferences>();
|
||||
|
||||
[DataMember(Name = "memberTypes")]
|
||||
public IEnumerable<ContentTypeReferences> MemberTypes { get; set; } = Enumerable.Empty<ContentTypeReferences>();
|
||||
|
||||
[DataContract(Name = "contentType", Namespace = "")]
|
||||
public class ContentTypeReferences : EntityBasic
|
||||
{
|
||||
[DataMember(Name = "properties")]
|
||||
public object Properties { get; set; }
|
||||
|
||||
[DataContract(Name = "property", Namespace = "")]
|
||||
public class PropertyTypeReferences
|
||||
{
|
||||
[DataMember(Name = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[DataMember(Name = "alias")]
|
||||
public string Alias { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user