Updated API version package and moved attribute to each controller (#14209)
* Updated API version package and moved attribute to each controller as it cannot be inherited. * Ignore "$type" on types implementing interfaces in the delivery api
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Mvc.ApiExplorer;
|
using Asp.Versioning.ApiExplorer;
|
||||||
using Microsoft.AspNetCore.Mvc.Versioning;
|
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Common.Configuration;
|
namespace Umbraco.Cms.Api.Common.Configuration;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
using Microsoft.AspNetCore.Mvc.Versioning;
|
using Asp.Versioning;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Common.Configuration;
|
namespace Umbraco.Cms.Api.Common.Configuration;
|
||||||
@@ -13,6 +13,5 @@ public class ConfigureApiVersioningOptions : IConfigureOptions<ApiVersioningOpti
|
|||||||
options.ApiVersionReader = new UrlSegmentApiVersionReader();
|
options.ApiVersionReader = new UrlSegmentApiVersionReader();
|
||||||
options.ApiVersionSelector = new CurrentImplementationApiVersionSelector(options);
|
options.ApiVersionSelector = new CurrentImplementationApiVersionSelector(options);
|
||||||
options.AssumeDefaultVersionWhenUnspecified = true; // This is required for the old backoffice to work
|
options.AssumeDefaultVersionWhenUnspecified = true; // This is required for the old backoffice to work
|
||||||
options.UseApiBehavior = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Mvc.ApiExplorer;
|
using Microsoft.AspNetCore.Mvc.ApiExplorer;
|
||||||
using Microsoft.AspNetCore.Mvc.Controllers;
|
using Microsoft.AspNetCore.Mvc.Controllers;
|
||||||
using Microsoft.AspNetCore.Mvc.Versioning;
|
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
using Microsoft.OpenApi.Models;
|
using Microsoft.OpenApi.Models;
|
||||||
using Swashbuckle.AspNetCore.SwaggerGen;
|
using Swashbuckle.AspNetCore.SwaggerGen;
|
||||||
using Umbraco.Cms.Api.Common.OpenApi;
|
using Umbraco.Cms.Api.Common.OpenApi;
|
||||||
|
using Umbraco.Cms.Core.Models.DeliveryApi;
|
||||||
using Umbraco.Extensions;
|
using Umbraco.Extensions;
|
||||||
using OperationIdRegexes = Umbraco.Cms.Api.Common.OpenApi.OperationIdRegexes;
|
using OperationIdRegexes = Umbraco.Cms.Api.Common.OpenApi.OperationIdRegexes;
|
||||||
|
|
||||||
@@ -56,8 +56,15 @@ public class ConfigureUmbracoSwaggerGenOptions : IConfigureOptions<SwaggerGenOpt
|
|||||||
swaggerGenOptions.SupportNonNullableReferenceTypes();
|
swaggerGenOptions.SupportNonNullableReferenceTypes();
|
||||||
swaggerGenOptions.UseOneOfForPolymorphism();
|
swaggerGenOptions.UseOneOfForPolymorphism();
|
||||||
swaggerGenOptions.UseAllOfForInheritance();
|
swaggerGenOptions.UseAllOfForInheritance();
|
||||||
|
var cachedApiElementNamespace = typeof(ApiElement).Namespace ?? string.Empty;
|
||||||
swaggerGenOptions.SelectDiscriminatorNameUsing(type =>
|
swaggerGenOptions.SelectDiscriminatorNameUsing(type =>
|
||||||
{
|
{
|
||||||
|
if (type.Namespace != null && type.Namespace.StartsWith(cachedApiElementNamespace))
|
||||||
|
{
|
||||||
|
// We do not show type on delivery, as it is read only.
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (type.GetInterfaces().Any())
|
if (type.GetInterfaces().Any())
|
||||||
{
|
{
|
||||||
return "$type";
|
return "$type";
|
||||||
|
|||||||
@@ -23,9 +23,8 @@ public static class UmbracoBuilderApiExtensions
|
|||||||
public static IUmbracoBuilder AddUmbracoApiOpenApiUI(this IUmbracoBuilder builder)
|
public static IUmbracoBuilder AddUmbracoApiOpenApiUI(this IUmbracoBuilder builder)
|
||||||
{
|
{
|
||||||
builder.Services.ConfigureOptions<ConfigureApiVersioningOptions>();
|
builder.Services.ConfigureOptions<ConfigureApiVersioningOptions>();
|
||||||
builder.Services.AddApiVersioning();
|
|
||||||
builder.Services.ConfigureOptions<ConfigureApiExplorerOptions>();
|
builder.Services.ConfigureOptions<ConfigureApiExplorerOptions>();
|
||||||
builder.Services.AddVersionedApiExplorer();
|
builder.Services.AddApiVersioning().AddApiExplorer();
|
||||||
|
|
||||||
builder.Services.AddSwaggerGen();
|
builder.Services.AddSwaggerGen();
|
||||||
builder.Services.ConfigureOptions<ConfigureUmbracoSwaggerGenOptions>();
|
builder.Services.ConfigureOptions<ConfigureUmbracoSwaggerGenOptions>();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
using Umbraco.Cms.Api.Common.Attributes;
|
using Umbraco.Cms.Api.Common.Attributes;
|
||||||
using Umbraco.Cms.Api.Common.Configuration;
|
using Umbraco.Cms.Api.Common.Configuration;
|
||||||
|
|
||||||
|
|||||||
@@ -9,13 +9,13 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<!-- <PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.8" />-->
|
<!-- <PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.8" />-->
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.0.0" />
|
<PackageReference Include="Asp.Versioning.Mvc" Version="7.0.0" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.0.0" />
|
<PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="7.0.0" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Umbraco.Core\Umbraco.Core.csproj" />
|
<ProjectReference Include="..\Umbraco.Core\Umbraco.Core.csproj" />
|
||||||
<ProjectReference Include="..\Umbraco.Web.Common\Umbraco.Web.Common.csproj" />
|
<ProjectReference Include="..\Umbraco.Web.Common\Umbraco.Web.Common.csproj" />
|
||||||
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.DeliveryApi;
|
using Umbraco.Cms.Core.DeliveryApi;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Delivery.Controllers;
|
namespace Umbraco.Cms.Api.Delivery.Controllers;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ByIdContentApiController : ContentApiItemControllerBase
|
public class ByIdContentApiController : ContentApiItemControllerBase
|
||||||
{
|
{
|
||||||
public ByIdContentApiController(
|
public ByIdContentApiController(
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.DeliveryApi;
|
using Umbraco.Cms.Core.DeliveryApi;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Delivery.Controllers;
|
namespace Umbraco.Cms.Api.Delivery.Controllers;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ByRouteContentApiController : ContentApiItemControllerBase
|
public class ByRouteContentApiController : ContentApiItemControllerBase
|
||||||
{
|
{
|
||||||
private readonly IRequestRoutingService _requestRoutingService;
|
private readonly IRequestRoutingService _requestRoutingService;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.Attributes;
|
using Umbraco.Cms.Api.Common.Attributes;
|
||||||
using Umbraco.Cms.Api.Common.Filters;
|
using Umbraco.Cms.Api.Common.Filters;
|
||||||
@@ -8,7 +9,6 @@ using Umbraco.Cms.Core;
|
|||||||
namespace Umbraco.Cms.Api.Delivery.Controllers;
|
namespace Umbraco.Cms.Api.Delivery.Controllers;
|
||||||
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[DeliveryApiAccess]
|
[DeliveryApiAccess]
|
||||||
[JsonOptionsName(Constants.JsonOptionsNames.DeliveryApi)]
|
[JsonOptionsName(Constants.JsonOptionsNames.DeliveryApi)]
|
||||||
[LocalizeFromAcceptLanguageHeader]
|
[LocalizeFromAcceptLanguageHeader]
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
@@ -8,6 +9,7 @@ using Umbraco.New.Cms.Core.Models;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Delivery.Controllers;
|
namespace Umbraco.Cms.Api.Delivery.Controllers;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class QueryContentApiController : ContentApiControllerBase
|
public class QueryContentApiController : ContentApiControllerBase
|
||||||
{
|
{
|
||||||
private readonly IApiContentQueryService _apiContentQueryService;
|
private readonly IApiContentQueryService _apiContentQueryService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Routing;
|
using Umbraco.Cms.Api.Management.Routing;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.AuditLog;
|
namespace Umbraco.Cms.Api.Management.Controllers.AuditLog;
|
||||||
@@ -6,7 +7,6 @@ namespace Umbraco.Cms.Api.Management.Controllers.AuditLog;
|
|||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute("audit-log")]
|
[VersionedApiBackOfficeRoute("audit-log")]
|
||||||
[ApiExplorerSettings(GroupName = "Audit Log")]
|
[ApiExplorerSettings(GroupName = "Audit Log")]
|
||||||
[ApiVersion("1.0")]
|
|
||||||
public class AuditLogControllerBase : ManagementApiControllerBase
|
public class AuditLogControllerBase : ManagementApiControllerBase
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
@@ -10,6 +11,7 @@ using Umbraco.New.Cms.Core.Models;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.AuditLog;
|
namespace Umbraco.Cms.Api.Management.Controllers.AuditLog;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ByKeyAuditLogController : AuditLogControllerBase
|
public class ByKeyAuditLogController : AuditLogControllerBase
|
||||||
{
|
{
|
||||||
private readonly IAuditService _auditService;
|
private readonly IAuditService _auditService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
@@ -8,6 +9,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.AuditLog;
|
namespace Umbraco.Cms.Api.Management.Controllers.AuditLog;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ByTypeAuditLogController : AuditLogControllerBase
|
public class ByTypeAuditLogController : AuditLogControllerBase
|
||||||
{
|
{
|
||||||
private readonly IAuditService _auditService;
|
private readonly IAuditService _auditService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
@@ -9,11 +10,11 @@ using Umbraco.Cms.Core.Models;
|
|||||||
using Umbraco.Cms.Core.Models.Membership;
|
using Umbraco.Cms.Core.Models.Membership;
|
||||||
using Umbraco.Cms.Core.Security;
|
using Umbraco.Cms.Core.Security;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
using Umbraco.Cms.Core.Services.OperationStatus;
|
|
||||||
using Umbraco.New.Cms.Core.Models;
|
using Umbraco.New.Cms.Core.Models;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.AuditLog;
|
namespace Umbraco.Cms.Api.Management.Controllers.AuditLog;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class CurrentUserAuditLogController : AuditLogControllerBase
|
public class CurrentUserAuditLogController : AuditLogControllerBase
|
||||||
{
|
{
|
||||||
private readonly IAuditService _auditService;
|
private readonly IAuditService _auditService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Culture;
|
namespace Umbraco.Cms.Api.Management.Controllers.Culture;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class AllCultureController : CultureControllerBase
|
public class AllCultureController : CultureControllerBase
|
||||||
{
|
{
|
||||||
private readonly IUmbracoMapper _umbracoMapper;
|
private readonly IUmbracoMapper _umbracoMapper;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Routing;
|
using Umbraco.Cms.Api.Management.Routing;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Culture;
|
namespace Umbraco.Cms.Api.Management.Controllers.Culture;
|
||||||
@@ -6,7 +7,6 @@ namespace Umbraco.Cms.Api.Management.Controllers.Culture;
|
|||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute("culture")]
|
[VersionedApiBackOfficeRoute("culture")]
|
||||||
[ApiExplorerSettings(GroupName = "Culture")]
|
[ApiExplorerSettings(GroupName = "Culture")]
|
||||||
[ApiVersion("1.0")]
|
|
||||||
public abstract class CultureControllerBase : ManagementApiControllerBase
|
public abstract class CultureControllerBase : ManagementApiControllerBase
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ByKeyDataTypeController : DataTypeControllerBase
|
public class ByKeyDataTypeController : DataTypeControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDataTypeService _dataTypeService;
|
private readonly IDataTypeService _dataTypeService;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
||||||
@@ -9,6 +10,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class CopyDataTypeController : DataTypeControllerBase
|
public class CopyDataTypeController : DataTypeControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDataTypeService _dataTypeService;
|
private readonly IDataTypeService _dataTypeService;
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
using Umbraco.Cms.Core.Security;
|
using Umbraco.Cms.Core.Security;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
@@ -11,6 +11,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class CreateDataTypeController : DataTypeControllerBase
|
public class CreateDataTypeController : DataTypeControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDataTypeService _dataTypeService;
|
private readonly IDataTypeService _dataTypeService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.Builders;
|
using Umbraco.Cms.Api.Common.Builders;
|
||||||
using Umbraco.Cms.Api.Management.Routing;
|
using Umbraco.Cms.Api.Management.Routing;
|
||||||
@@ -10,7 +11,6 @@ namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
|||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute(Constants.UdiEntityType.DataType)]
|
[VersionedApiBackOfficeRoute(Constants.UdiEntityType.DataType)]
|
||||||
[ApiExplorerSettings(GroupName = "Data Type")]
|
[ApiExplorerSettings(GroupName = "Data Type")]
|
||||||
[ApiVersion("1.0")]
|
|
||||||
public abstract class DataTypeControllerBase : ManagementApiControllerBase
|
public abstract class DataTypeControllerBase : ManagementApiControllerBase
|
||||||
{
|
{
|
||||||
protected IActionResult DataTypeOperationStatusResult(DataTypeOperationStatus status) =>
|
protected IActionResult DataTypeOperationStatusResult(DataTypeOperationStatus status) =>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -8,6 +9,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class DeleteDataTypeController : DataTypeControllerBase
|
public class DeleteDataTypeController : DataTypeControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDataTypeService _dataTypeService;
|
private readonly IDataTypeService _dataTypeService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Folder;
|
using Umbraco.Cms.Api.Management.ViewModels.Folder;
|
||||||
using Umbraco.Cms.Core.Security;
|
using Umbraco.Cms.Core.Security;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Folder;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Folder;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ByKeyDataTypeFolderController : DataTypeFolderControllerBase
|
public class ByKeyDataTypeFolderController : DataTypeFolderControllerBase
|
||||||
{
|
{
|
||||||
public ByKeyDataTypeFolderController(IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IDataTypeContainerService dataTypeContainerService)
|
public ByKeyDataTypeFolderController(IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IDataTypeContainerService dataTypeContainerService)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Folder;
|
using Umbraco.Cms.Api.Management.ViewModels.Folder;
|
||||||
using Umbraco.Cms.Core.Security;
|
using Umbraco.Cms.Core.Security;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Folder;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Folder;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class CreateDataTypeFolderController : DataTypeFolderControllerBase
|
public class CreateDataTypeFolderController : DataTypeFolderControllerBase
|
||||||
{
|
{
|
||||||
public CreateDataTypeFolderController(IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IDataTypeContainerService dataTypeContainerService)
|
public CreateDataTypeFolderController(IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IDataTypeContainerService dataTypeContainerService)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.Builders;
|
using Umbraco.Cms.Api.Common.Builders;
|
||||||
using Umbraco.Cms.Api.Management.Routing;
|
using Umbraco.Cms.Api.Management.Routing;
|
||||||
@@ -10,7 +11,6 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Folder;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Folder;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute($"{Constants.UdiEntityType.DataType}/folder")]
|
[VersionedApiBackOfficeRoute($"{Constants.UdiEntityType.DataType}/folder")]
|
||||||
[ApiExplorerSettings(GroupName = "Data Type")]
|
[ApiExplorerSettings(GroupName = "Data Type")]
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Folder;
|
|
||||||
using Umbraco.Cms.Core.Security;
|
using Umbraco.Cms.Core.Security;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Folder;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Folder;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class DeleteDataTypeFolderController : DataTypeFolderControllerBase
|
public class DeleteDataTypeFolderController : DataTypeFolderControllerBase
|
||||||
{
|
{
|
||||||
public DeleteDataTypeFolderController(IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IDataTypeContainerService dataTypeContainerService)
|
public DeleteDataTypeFolderController(IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IDataTypeContainerService dataTypeContainerService)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Folder;
|
using Umbraco.Cms.Api.Management.ViewModels.Folder;
|
||||||
using Umbraco.Cms.Core.Security;
|
using Umbraco.Cms.Core.Security;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Folder;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Folder;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class UpdateDataTypeFolderController : DataTypeFolderControllerBase
|
public class UpdateDataTypeFolderController : DataTypeFolderControllerBase
|
||||||
{
|
{
|
||||||
public UpdateDataTypeFolderController(IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IDataTypeContainerService dataTypeContainerService)
|
public UpdateDataTypeFolderController(IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IDataTypeContainerService dataTypeContainerService)
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
|
||||||
using Umbraco.Cms.Core.Models;
|
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
using Umbraco.Cms.Core.Services.OperationStatus;
|
using Umbraco.Cms.Core.Services.OperationStatus;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class IsUsedDataTypeController : DataTypeControllerBase
|
public class IsUsedDataTypeController : DataTypeControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDataTypeUsageService _dataTypeUsageService;
|
private readonly IDataTypeUsageService _dataTypeUsageService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DataType.Item;
|
using Umbraco.Cms.Api.Management.ViewModels.DataType.Item;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Items;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Items;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ItemDatatypeItemController : DatatypeItemControllerBase
|
public class ItemDatatypeItemController : DatatypeItemControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDataTypeService _dataTypeService;
|
private readonly IDataTypeService _dataTypeService;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
||||||
@@ -9,6 +10,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class MoveDataTypeController : DataTypeControllerBase
|
public class MoveDataTypeController : DataTypeControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDataTypeService _dataTypeService;
|
private readonly IDataTypeService _dataTypeService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
||||||
@@ -8,6 +9,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ReferencesDataTypeController : DataTypeControllerBase
|
public class ReferencesDataTypeController : DataTypeControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDataTypeService _dataTypeService;
|
private readonly IDataTypeService _dataTypeService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Cms.Api.Management.ViewModels.Tree;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Tree;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ChildrenDataTypeTreeController : DataTypeTreeControllerBase
|
public class ChildrenDataTypeTreeController : DataTypeTreeControllerBase
|
||||||
{
|
{
|
||||||
public ChildrenDataTypeTreeController(IEntityService entityService, IDataTypeService dataTypeService)
|
public ChildrenDataTypeTreeController(IEntityService entityService, IDataTypeService dataTypeService)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
using Umbraco.Cms.Core.Models.Entities;
|
using Umbraco.Cms.Core.Models.Entities;
|
||||||
@@ -9,7 +10,6 @@ using Umbraco.Cms.Api.Management.Routing;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Tree;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.Tree}/{Constants.UdiEntityType.DataType}")]
|
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.Tree}/{Constants.UdiEntityType.DataType}")]
|
||||||
[ApiExplorerSettings(GroupName = "Data Type")]
|
[ApiExplorerSettings(GroupName = "Data Type")]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Cms.Api.Management.ViewModels.Tree;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType.Tree;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class RootDataTypeTreeController : DataTypeTreeControllerBase
|
public class RootDataTypeTreeController : DataTypeTreeControllerBase
|
||||||
{
|
{
|
||||||
public RootDataTypeTreeController(IEntityService entityService, IDataTypeService dataTypeService)
|
public RootDataTypeTreeController(IEntityService entityService, IDataTypeService dataTypeService)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
using Umbraco.Cms.Api.Management.ViewModels.DataType;
|
||||||
@@ -10,6 +11,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
namespace Umbraco.Cms.Api.Management.Controllers.DataType;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class UpdateDataTypeController : DataTypeControllerBase
|
public class UpdateDataTypeController : DataTypeControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDataTypeService _dataTypeService;
|
private readonly IDataTypeService _dataTypeService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -9,6 +10,7 @@ using Umbraco.Cms.Core;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class AllDictionaryController : DictionaryControllerBase
|
public class AllDictionaryController : DictionaryControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDictionaryItemService _dictionaryItemService;
|
private readonly IDictionaryItemService _dictionaryItemService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Api.Management.ViewModels.Dictionary;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ByKeyDictionaryController : DictionaryControllerBase
|
public class ByKeyDictionaryController : DictionaryControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDictionaryItemService _dictionaryItemService;
|
private readonly IDictionaryItemService _dictionaryItemService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -10,6 +11,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class CreateDictionaryController : DictionaryControllerBase
|
public class CreateDictionaryController : DictionaryControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDictionaryItemService _dictionaryItemService;
|
private readonly IDictionaryItemService _dictionaryItemService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -8,6 +9,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class DeleteDictionaryController : DictionaryControllerBase
|
public class DeleteDictionaryController : DictionaryControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDictionaryItemService _dictionaryItemService;
|
private readonly IDictionaryItemService _dictionaryItemService;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.Builders;
|
using Umbraco.Cms.Api.Common.Builders;
|
||||||
@@ -9,7 +10,6 @@ namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
|||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute("dictionary")]
|
[VersionedApiBackOfficeRoute("dictionary")]
|
||||||
[ApiExplorerSettings(GroupName = "Dictionary")]
|
[ApiExplorerSettings(GroupName = "Dictionary")]
|
||||||
[ApiVersion("1.0")]
|
|
||||||
// TODO: Add authentication
|
// TODO: Add authentication
|
||||||
public abstract class DictionaryControllerBase : ManagementApiControllerBase
|
public abstract class DictionaryControllerBase : ManagementApiControllerBase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using System.Net.Mime;
|
using System.Net.Mime;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Xml.Linq;
|
using System.Xml.Linq;
|
||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -9,6 +10,7 @@ using Umbraco.Extensions;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ExportDictionaryController : DictionaryControllerBase
|
public class ExportDictionaryController : DictionaryControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDictionaryItemService _dictionaryItemService;
|
private readonly IDictionaryItemService _dictionaryItemService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.Builders;
|
using Umbraco.Cms.Api.Common.Builders;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -10,6 +11,7 @@ using Umbraco.Cms.Core.Security;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ImportDictionaryController : DictionaryControllerBase
|
public class ImportDictionaryController : DictionaryControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDictionaryItemImportService _dictionaryItemImportService;
|
private readonly IDictionaryItemImportService _dictionaryItemImportService;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DataType.Item;
|
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Dictionary.Item;
|
using Umbraco.Cms.Api.Management.ViewModels.Dictionary.Item;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -8,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary.Item;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary.Item;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ItemDictionaryItemController : DictionaryItemControllerBase
|
public class ItemDictionaryItemController : DictionaryItemControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDictionaryItemService _dictionaryItemService;
|
private readonly IDictionaryItemService _dictionaryItemService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Dictionary;
|
using Umbraco.Cms.Api.Management.ViewModels.Dictionary;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
@@ -9,6 +10,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class MoveDictionaryController : DictionaryControllerBase
|
public class MoveDictionaryController : DictionaryControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDictionaryItemService _dictionaryItemService;
|
private readonly IDictionaryItemService _dictionaryItemService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
@@ -8,6 +9,7 @@ using Umbraco.Cms.Api.Management.ViewModels.Tree;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary.Tree;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ChildrenDictionaryTreeController : DictionaryTreeControllerBase
|
public class ChildrenDictionaryTreeController : DictionaryTreeControllerBase
|
||||||
{
|
{
|
||||||
public ChildrenDictionaryTreeController(IEntityService entityService, IDictionaryItemService dictionaryItemService)
|
public ChildrenDictionaryTreeController(IEntityService entityService, IDictionaryItemService dictionaryItemService)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -8,7 +9,6 @@ using Umbraco.Cms.Api.Management.Routing;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary.Tree;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.Tree}/dictionary")]
|
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.Tree}/dictionary")]
|
||||||
[ApiExplorerSettings(GroupName = "Dictionary")]
|
[ApiExplorerSettings(GroupName = "Dictionary")]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
@@ -8,6 +9,7 @@ using Umbraco.Cms.Api.Management.ViewModels.Tree;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary.Tree;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class RootDictionaryTreeController : DictionaryTreeControllerBase
|
public class RootDictionaryTreeController : DictionaryTreeControllerBase
|
||||||
{
|
{
|
||||||
public RootDictionaryTreeController(IEntityService entityService, IDictionaryItemService dictionaryItemService)
|
public RootDictionaryTreeController(IEntityService entityService, IDictionaryItemService dictionaryItemService)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -10,6 +11,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
namespace Umbraco.Cms.Api.Management.Controllers.Dictionary;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class UpdateDictionaryController : DictionaryControllerBase
|
public class UpdateDictionaryController : DictionaryControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDictionaryItemService _dictionaryItemService;
|
private readonly IDictionaryItemService _dictionaryItemService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ByKeyDocumentController : DocumentControllerBase
|
public class ByKeyDocumentController : DocumentControllerBase
|
||||||
{
|
{
|
||||||
private readonly IContentEditingService _contentEditingService;
|
private readonly IContentEditingService _contentEditingService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
@@ -9,6 +10,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class CopyDocumentController : DocumentControllerBase
|
public class CopyDocumentController : DocumentControllerBase
|
||||||
{
|
{
|
||||||
private readonly IContentEditingService _contentEditingService;
|
private readonly IContentEditingService _contentEditingService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
||||||
@@ -11,6 +12,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class CreateDocumentController : DocumentControllerBase
|
public class CreateDocumentController : DocumentControllerBase
|
||||||
{
|
{
|
||||||
private readonly IContentEditingService _contentEditingService;
|
private readonly IContentEditingService _contentEditingService;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Content;
|
using Umbraco.Cms.Api.Management.Content;
|
||||||
using Umbraco.Cms.Api.Management.Routing;
|
using Umbraco.Cms.Api.Management.Routing;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute(Constants.UdiEntityType.Document)]
|
[VersionedApiBackOfficeRoute(Constants.UdiEntityType.Document)]
|
||||||
[ApiExplorerSettings(GroupName = nameof(Constants.UdiEntityType.Document))]
|
[ApiExplorerSettings(GroupName = nameof(Constants.UdiEntityType.Document))]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class DomainsController : DocumentControllerBase
|
public class DomainsController : DocumentControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDomainService _domainService;
|
private readonly IDomainService _domainService;
|
||||||
@@ -17,6 +19,7 @@ public class DomainsController : DocumentControllerBase
|
|||||||
_umbracoMapper = umbracoMapper;
|
_umbracoMapper = umbracoMapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MapToApiVersion("1.0")]
|
||||||
[HttpGet("{id:guid}/domains")]
|
[HttpGet("{id:guid}/domains")]
|
||||||
public async Task<IActionResult> DomainsAsync(Guid id)
|
public async Task<IActionResult> DomainsAsync(Guid id)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Routing;
|
using Umbraco.Cms.Api.Management.Routing;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document.Item;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document.Item;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute(Constants.UdiEntityType.Document)]
|
[VersionedApiBackOfficeRoute(Constants.UdiEntityType.Document)]
|
||||||
[ApiExplorerSettings(GroupName = nameof(Constants.UdiEntityType.Document))]
|
[ApiExplorerSettings(GroupName = nameof(Constants.UdiEntityType.Document))]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Api.Management.Services.Entities;
|
using Umbraco.Cms.Api.Management.Services.Entities;
|
||||||
@@ -10,6 +11,7 @@ using Umbraco.Extensions;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document.Item;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document.Item;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ItemDocumentItemController : DocumentItemControllerBase
|
public class ItemDocumentItemController : DocumentItemControllerBase
|
||||||
{
|
{
|
||||||
private readonly IEntityService _entityService;
|
private readonly IEntityService _entityService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
@@ -9,6 +10,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class MoveDocumentController : DocumentControllerBase
|
public class MoveDocumentController : DocumentControllerBase
|
||||||
{
|
{
|
||||||
private readonly IContentEditingService _contentEditingService;
|
private readonly IContentEditingService _contentEditingService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -8,6 +9,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class MoveToRecycleBinDocumentController : DocumentControllerBase
|
public class MoveToRecycleBinDocumentController : DocumentControllerBase
|
||||||
{
|
{
|
||||||
private readonly IContentEditingService _contentEditingService;
|
private readonly IContentEditingService _contentEditingService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class NotificationsController : DocumentControllerBase
|
public class NotificationsController : DocumentControllerBase
|
||||||
{
|
{
|
||||||
private readonly IContentEditingService _contentEditingService;
|
private readonly IContentEditingService _contentEditingService;
|
||||||
@@ -18,6 +20,7 @@ public class NotificationsController : DocumentControllerBase
|
|||||||
_documentNotificationPresentationFactory = documentNotificationPresentationFactory;
|
_documentNotificationPresentationFactory = documentNotificationPresentationFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MapToApiVersion("1.0")]
|
||||||
[HttpGet("{id:guid}/notifications")]
|
[HttpGet("{id:guid}/notifications")]
|
||||||
[ProducesResponseType(typeof(IEnumerable<DocumentNotificationResponseModel>), StatusCodes.Status200OK)]
|
[ProducesResponseType(typeof(IEnumerable<DocumentNotificationResponseModel>), StatusCodes.Status200OK)]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Cms.Api.Management.ViewModels.RecycleBin;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document.RecycleBin;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document.RecycleBin;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ChildrenDocumentRecycleBinController : DocumentRecycleBinControllerBase
|
public class ChildrenDocumentRecycleBinController : DocumentRecycleBinControllerBase
|
||||||
{
|
{
|
||||||
public ChildrenDocumentRecycleBinController(IEntityService entityService)
|
public ChildrenDocumentRecycleBinController(IEntityService entityService)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -11,7 +12,6 @@ using Umbraco.Cms.Api.Management.Routing;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document.RecycleBin;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document.RecycleBin;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.RecycleBin}/{Constants.UdiEntityType.Document}")]
|
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.RecycleBin}/{Constants.UdiEntityType.Document}")]
|
||||||
[RequireDocumentTreeRootAccess]
|
[RequireDocumentTreeRootAccess]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Cms.Api.Management.ViewModels.RecycleBin;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document.RecycleBin;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document.RecycleBin;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class RootDocumentRecycleBinController : DocumentRecycleBinControllerBase
|
public class RootDocumentRecycleBinController : DocumentRecycleBinControllerBase
|
||||||
{
|
{
|
||||||
public RootDocumentRecycleBinController(IEntityService entityService)
|
public RootDocumentRecycleBinController(IEntityService entityService)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Cache;
|
using Umbraco.Cms.Core.Cache;
|
||||||
using Umbraco.Cms.Core.Security;
|
using Umbraco.Cms.Core.Security;
|
||||||
@@ -9,6 +10,7 @@ using Umbraco.Cms.Api.Management.ViewModels.Tree;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document.Tree;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ChildrenDocumentTreeController : DocumentTreeControllerBase
|
public class ChildrenDocumentTreeController : DocumentTreeControllerBase
|
||||||
{
|
{
|
||||||
public ChildrenDocumentTreeController(
|
public ChildrenDocumentTreeController(
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Cache;
|
using Umbraco.Cms.Core.Cache;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -13,7 +14,6 @@ using Umbraco.Cms.Api.Management.Routing;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document.Tree;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.Tree}/{Constants.UdiEntityType.Document}")]
|
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.Tree}/{Constants.UdiEntityType.Document}")]
|
||||||
[ApiExplorerSettings(GroupName = nameof(Constants.UdiEntityType.Document))]
|
[ApiExplorerSettings(GroupName = nameof(Constants.UdiEntityType.Document))]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Cache;
|
using Umbraco.Cms.Core.Cache;
|
||||||
using Umbraco.Cms.Core.Security;
|
using Umbraco.Cms.Core.Security;
|
||||||
@@ -9,6 +10,7 @@ using Umbraco.Cms.Api.Management.ViewModels.Tree;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document.Tree;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class RootDocumentTreeController : DocumentTreeControllerBase
|
public class RootDocumentTreeController : DocumentTreeControllerBase
|
||||||
{
|
{
|
||||||
public RootDocumentTreeController(
|
public RootDocumentTreeController(
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
||||||
@@ -11,6 +12,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class UpdateDocumentController : DocumentControllerBase
|
public class UpdateDocumentController : DocumentControllerBase
|
||||||
{
|
{
|
||||||
private readonly IContentEditingService _contentEditingService;
|
private readonly IContentEditingService _contentEditingService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.Builders;
|
using Umbraco.Cms.Api.Common.Builders;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
||||||
@@ -11,6 +12,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class UpdateDomainsController : DocumentControllerBase
|
public class UpdateDomainsController : DocumentControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDomainService _domainService;
|
private readonly IDomainService _domainService;
|
||||||
@@ -22,6 +24,7 @@ public class UpdateDomainsController : DocumentControllerBase
|
|||||||
_umbracoMapper = umbracoMapper;
|
_umbracoMapper = umbracoMapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MapToApiVersion("1.0")]
|
||||||
[HttpPut("{id:guid}/domains")]
|
[HttpPut("{id:guid}/domains")]
|
||||||
public async Task<IActionResult> UpdateDomainsAsync(Guid id, UpdateDomainsRequestModel updateModel)
|
public async Task<IActionResult> UpdateDomainsAsync(Guid id, UpdateDomainsRequestModel updateModel)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
using Umbraco.Cms.Api.Management.ViewModels.Document;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
namespace Umbraco.Cms.Api.Management.Controllers.Document;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class UpdateNotificationsController : DocumentControllerBase
|
public class UpdateNotificationsController : DocumentControllerBase
|
||||||
{
|
{
|
||||||
private readonly IContentEditingService _contentEditingService;
|
private readonly IContentEditingService _contentEditingService;
|
||||||
@@ -20,6 +22,7 @@ public class UpdateNotificationsController : DocumentControllerBase
|
|||||||
_backOfficeSecurityAccessor = backOfficeSecurityAccessor;
|
_backOfficeSecurityAccessor = backOfficeSecurityAccessor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MapToApiVersion("1.0")]
|
||||||
[HttpPut("{id:guid}/notifications")]
|
[HttpPut("{id:guid}/notifications")]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ using Umbraco.Cms.Core;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentBlueprint.Item;
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentBlueprint.Item;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute($"{Constants.UdiEntityType.DocumentBlueprint}")]
|
[VersionedApiBackOfficeRoute($"{Constants.UdiEntityType.DocumentBlueprint}")]
|
||||||
[ApiExplorerSettings(GroupName = "Document Blueprint")]
|
[ApiExplorerSettings(GroupName = "Document Blueprint")]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentBlueprint.Item;
|
using Umbraco.Cms.Api.Management.ViewModels.DocumentBlueprint.Item;
|
||||||
@@ -9,6 +10,7 @@ using Umbraco.Extensions;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentBlueprint.Item;
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentBlueprint.Item;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ItemDocumentBlueprintController : DocumentBlueprintItemControllerBase
|
public class ItemDocumentBlueprintController : DocumentBlueprintItemControllerBase
|
||||||
{
|
{
|
||||||
private readonly IEntityService _entityService;
|
private readonly IEntityService _entityService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
using Umbraco.Cms.Core.Models.Entities;
|
using Umbraco.Cms.Core.Models.Entities;
|
||||||
@@ -9,7 +10,6 @@ using Umbraco.Cms.Api.Management.Routing;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentBlueprint.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentBlueprint.Tree;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.Tree}/{Constants.UdiEntityType.DocumentBlueprint}")]
|
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.Tree}/{Constants.UdiEntityType.DocumentBlueprint}")]
|
||||||
[ApiExplorerSettings(GroupName = "Document Blueprint")]
|
[ApiExplorerSettings(GroupName = "Document Blueprint")]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Cms.Api.Management.ViewModels.Tree;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentBlueprint.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentBlueprint.Tree;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class RootDocumentBlueprintTreeController : DocumentBlueprintTreeControllerBase
|
public class RootDocumentBlueprintTreeController : DocumentBlueprintTreeControllerBase
|
||||||
{
|
{
|
||||||
public RootDocumentBlueprintTreeController(IEntityService entityService, IContentTypeService contentTypeService)
|
public RootDocumentBlueprintTreeController(IEntityService entityService, IContentTypeService contentTypeService)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType;
|
using Umbraco.Cms.Api.Management.ViewModels.DocumentType;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType;
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ByKeyDocumentTypeController : DocumentTypeControllerBase
|
public class ByKeyDocumentTypeController : DocumentTypeControllerBase
|
||||||
{
|
{
|
||||||
private readonly IContentTypeService _contentTypeService;
|
private readonly IContentTypeService _contentTypeService;
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Routing;
|
using Umbraco.Cms.Api.Management.Routing;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType;
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute(Constants.UdiEntityType.DocumentType)]
|
[VersionedApiBackOfficeRoute(Constants.UdiEntityType.DocumentType)]
|
||||||
[ApiExplorerSettings(GroupName = "Document Type")]
|
[ApiExplorerSettings(GroupName = "Document Type")]
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ using Umbraco.Cms.Core;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Item;
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Item;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute(Constants.UdiEntityType.DocumentType)]
|
[VersionedApiBackOfficeRoute(Constants.UdiEntityType.DocumentType)]
|
||||||
[ApiExplorerSettings(GroupName = "Document Type")]
|
[ApiExplorerSettings(GroupName = "Document Type")]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType.Item;
|
using Umbraco.Cms.Api.Management.ViewModels.DocumentType.Item;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Item;
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Item;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ItemDocumentTypeItemController : DocumentTypeItemControllerBase
|
public class ItemDocumentTypeItemController : DocumentTypeItemControllerBase
|
||||||
{
|
{
|
||||||
private readonly IContentTypeService _contentTypeService;
|
private readonly IContentTypeService _contentTypeService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Cms.Api.Management.ViewModels.Tree;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Tree;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ChildrenDocumentTypeTreeController : DocumentTypeTreeControllerBase
|
public class ChildrenDocumentTypeTreeController : DocumentTypeTreeControllerBase
|
||||||
{
|
{
|
||||||
public ChildrenDocumentTypeTreeController(IEntityService entityService, IContentTypeService contentTypeService)
|
public ChildrenDocumentTypeTreeController(IEntityService entityService, IContentTypeService contentTypeService)
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
using Umbraco.Cms.Core.Models.Entities;
|
using Umbraco.Cms.Core.Models.Entities;
|
||||||
@@ -9,7 +10,6 @@ using Umbraco.Cms.Api.Management.Routing;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Tree;
|
||||||
|
|
||||||
[ApiVersion("1.0")]
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.Tree}/{Constants.UdiEntityType.DocumentType}")]
|
[VersionedApiBackOfficeRoute($"{Constants.Web.RoutePath.Tree}/{Constants.UdiEntityType.DocumentType}")]
|
||||||
[ApiExplorerSettings(GroupName = "Document Type")]
|
[ApiExplorerSettings(GroupName = "Document Type")]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Services;
|
using Umbraco.Cms.Core.Services;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Cms.Api.Management.ViewModels.Tree;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Tree;
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Tree;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class RootDocumentTypeTreeController : DocumentTypeTreeControllerBase
|
public class RootDocumentTypeTreeController : DocumentTypeTreeControllerBase
|
||||||
{
|
{
|
||||||
public RootDocumentTypeTreeController(IEntityService entityService, IContentTypeService contentTypeService)
|
public RootDocumentTypeTreeController(IEntityService entityService, IContentTypeService contentTypeService)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
@@ -8,6 +9,7 @@ using Umbraco.Cms.Core.Mapping;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.HealthCheck;
|
namespace Umbraco.Cms.Api.Management.Controllers.HealthCheck;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ExecuteActionHealthCheckController : HealthCheckControllerBase
|
public class ExecuteActionHealthCheckController : HealthCheckControllerBase
|
||||||
{
|
{
|
||||||
private readonly HealthCheckCollection _healthChecks;
|
private readonly HealthCheckCollection _healthChecks;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Mapping;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.HealthCheck.Group;
|
namespace Umbraco.Cms.Api.Management.Controllers.HealthCheck.Group;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class AllHealthCheckGroupController : HealthCheckGroupControllerBase
|
public class AllHealthCheckGroupController : HealthCheckGroupControllerBase
|
||||||
{
|
{
|
||||||
private readonly IHealthCheckGroupPresentationFactory _healthCheckGroupPresentationFactory;
|
private readonly IHealthCheckGroupPresentationFactory _healthCheckGroupPresentationFactory;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Extensions;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.HealthCheck.Group;
|
namespace Umbraco.Cms.Api.Management.Controllers.HealthCheck.Group;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ByNameHealthCheckGroupController : HealthCheckGroupControllerBase
|
public class ByNameHealthCheckGroupController : HealthCheckGroupControllerBase
|
||||||
{
|
{
|
||||||
private readonly IHealthCheckGroupPresentationFactory _healthCheckGroupPresentationFactory;
|
private readonly IHealthCheckGroupPresentationFactory _healthCheckGroupPresentationFactory;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
@@ -6,6 +7,7 @@ using Umbraco.Extensions;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.HealthCheck.Group;
|
namespace Umbraco.Cms.Api.Management.Controllers.HealthCheck.Group;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class CheckHealthCheckGroupController : HealthCheckGroupControllerBase
|
public class CheckHealthCheckGroupController : HealthCheckGroupControllerBase
|
||||||
{
|
{
|
||||||
private readonly IHealthCheckGroupPresentationFactory _healthCheckGroupPresentationFactory;
|
private readonly IHealthCheckGroupPresentationFactory _healthCheckGroupPresentationFactory;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Routing;
|
using Umbraco.Cms.Api.Management.Routing;
|
||||||
using Constants = Umbraco.Cms.Core.Constants;
|
using Constants = Umbraco.Cms.Core.Constants;
|
||||||
@@ -7,7 +8,6 @@ namespace Umbraco.Cms.Api.Management.Controllers.HealthCheck.Group;
|
|||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute($"{Constants.HealthChecks.RoutePath.HealthCheck}-group")]
|
[VersionedApiBackOfficeRoute($"{Constants.HealthChecks.RoutePath.HealthCheck}-group")]
|
||||||
[ApiExplorerSettings(GroupName = "Health Check")]
|
[ApiExplorerSettings(GroupName = "Health Check")]
|
||||||
[ApiVersion("1.0")]
|
|
||||||
public abstract class HealthCheckGroupControllerBase : ManagementApiControllerBase
|
public abstract class HealthCheckGroupControllerBase : ManagementApiControllerBase
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Routing;
|
using Umbraco.Cms.Api.Management.Routing;
|
||||||
using Constants = Umbraco.Cms.Core.Constants;
|
using Constants = Umbraco.Cms.Core.Constants;
|
||||||
@@ -7,7 +8,6 @@ namespace Umbraco.Cms.Api.Management.Controllers.HealthCheck;
|
|||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute($"{Constants.HealthChecks.RoutePath.HealthCheck}")]
|
[VersionedApiBackOfficeRoute($"{Constants.HealthChecks.RoutePath.HealthCheck}")]
|
||||||
[ApiExplorerSettings(GroupName = "Health Check")]
|
[ApiExplorerSettings(GroupName = "Health Check")]
|
||||||
[ApiVersion("1.0")]
|
|
||||||
public abstract class HealthCheckControllerBase : ManagementApiControllerBase
|
public abstract class HealthCheckControllerBase : ManagementApiControllerBase
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,17 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
using Umbraco.Cms.Core.Configuration.Models;
|
using Umbraco.Cms.Core.Configuration.Models;
|
||||||
using Umbraco.Cms.Core.Serialization;
|
using Umbraco.Cms.Core.Serialization;
|
||||||
using Umbraco.Cms.Api.Common.Builders;
|
using Umbraco.Cms.Api.Common.Builders;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Help;
|
using Umbraco.Cms.Api.Management.ViewModels.Help;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Help;
|
namespace Umbraco.Cms.Api.Management.Controllers.Help;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class GetHelpController : HelpControllerBase
|
public class GetHelpController : HelpControllerBase
|
||||||
{
|
{
|
||||||
private readonly ILogger<GetHelpController> _logger;
|
private readonly ILogger<GetHelpController> _logger;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Routing;
|
using Umbraco.Cms.Api.Management.Routing;
|
||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Help;
|
namespace Umbraco.Cms.Api.Management.Controllers.Help;
|
||||||
@@ -6,7 +7,6 @@ namespace Umbraco.Cms.Api.Management.Controllers.Help;
|
|||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute("help")]
|
[VersionedApiBackOfficeRoute("help")]
|
||||||
[ApiExplorerSettings(GroupName = "Help")]
|
[ApiExplorerSettings(GroupName = "Help")]
|
||||||
[ApiVersion("1.0")]
|
|
||||||
public abstract class HelpControllerBase : ManagementApiControllerBase
|
public abstract class HelpControllerBase : ManagementApiControllerBase
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Examine;
|
using Asp.Versioning;
|
||||||
|
using Examine;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Examine;
|
using Asp.Versioning;
|
||||||
|
using Examine;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
using Umbraco.Cms.Api.Management.Factories;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Examine;
|
using Asp.Versioning;
|
||||||
|
using Examine;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
using Umbraco.Cms.Infrastructure.Install;
|
using Umbraco.Cms.Infrastructure.Install;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
using Umbraco.Cms.Core.Configuration.Models;
|
using Umbraco.Cms.Core.Configuration.Models;
|
||||||
using Umbraco.Cms.Core.Hosting;
|
using Umbraco.Cms.Core.Hosting;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Installer;
|
using Umbraco.Cms.Api.Management.ViewModels.Installer;
|
||||||
using Umbraco.Extensions;
|
|
||||||
using Umbraco.New.Cms.Core.Models.Installer;
|
using Umbraco.New.Cms.Core.Models.Installer;
|
||||||
using Umbraco.New.Cms.Core.Services.Installer;
|
using Umbraco.New.Cms.Core.Services.Installer;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core.Install.Models;
|
using Umbraco.Cms.Core.Install.Models;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Language;
|
using Umbraco.Cms.Api.Management.ViewModels.Language;
|
||||||
@@ -8,6 +9,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Language;
|
namespace Umbraco.Cms.Api.Management.Controllers.Language;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class AllLanguageController : LanguageControllerBase
|
public class AllLanguageController : LanguageControllerBase
|
||||||
{
|
{
|
||||||
private readonly ILanguageService _languageService;
|
private readonly ILanguageService _languageService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Language;
|
using Umbraco.Cms.Api.Management.ViewModels.Language;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Language;
|
namespace Umbraco.Cms.Api.Management.Controllers.Language;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ByIsoCodeLanguageController : LanguageControllerBase
|
public class ByIsoCodeLanguageController : LanguageControllerBase
|
||||||
{
|
{
|
||||||
private readonly ILanguageService _languageService;
|
private readonly ILanguageService _languageService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Language;
|
using Umbraco.Cms.Api.Management.ViewModels.Language;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
@@ -10,6 +11,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Language;
|
namespace Umbraco.Cms.Api.Management.Controllers.Language;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class CreateLanguageController : LanguageControllerBase
|
public class CreateLanguageController : LanguageControllerBase
|
||||||
{
|
{
|
||||||
private readonly ILanguageService _languageService;
|
private readonly ILanguageService _languageService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Models;
|
using Umbraco.Cms.Core.Models;
|
||||||
@@ -8,6 +9,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Language;
|
namespace Umbraco.Cms.Api.Management.Controllers.Language;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class DeleteLanguageController : LanguageControllerBase
|
public class DeleteLanguageController : LanguageControllerBase
|
||||||
{
|
{
|
||||||
private readonly ILanguageService _languageService;
|
private readonly ILanguageService _languageService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Language.Item;
|
using Umbraco.Cms.Api.Management.ViewModels.Language.Item;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
@@ -7,6 +8,7 @@ using Umbraco.Cms.Core.Services;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Language.Item;
|
namespace Umbraco.Cms.Api.Management.Controllers.Language.Item;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class ItemsLanguageEntityController : LanguageEntityControllerBase
|
public class ItemsLanguageEntityController : LanguageEntityControllerBase
|
||||||
{
|
{
|
||||||
private readonly ILanguageService _languageService;
|
private readonly ILanguageService _languageService;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.Builders;
|
using Umbraco.Cms.Api.Common.Builders;
|
||||||
using Umbraco.Cms.Api.Management.Routing;
|
using Umbraco.Cms.Api.Management.Routing;
|
||||||
@@ -9,7 +10,6 @@ namespace Umbraco.Cms.Api.Management.Controllers.Language;
|
|||||||
[ApiController]
|
[ApiController]
|
||||||
[VersionedApiBackOfficeRoute("language")]
|
[VersionedApiBackOfficeRoute("language")]
|
||||||
[ApiExplorerSettings(GroupName = "Language")]
|
[ApiExplorerSettings(GroupName = "Language")]
|
||||||
[ApiVersion("1.0")]
|
|
||||||
public abstract class LanguageControllerBase : ManagementApiControllerBase
|
public abstract class LanguageControllerBase : ManagementApiControllerBase
|
||||||
{
|
{
|
||||||
protected IActionResult LanguageOperationStatusResult(LanguageOperationStatus status) =>
|
protected IActionResult LanguageOperationStatusResult(LanguageOperationStatus status) =>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using Microsoft.AspNetCore.Http;
|
using Asp.Versioning;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Management.Factories;
|
|
||||||
using Umbraco.Cms.Api.Management.ViewModels.Language;
|
using Umbraco.Cms.Api.Management.ViewModels.Language;
|
||||||
using Umbraco.Cms.Core;
|
using Umbraco.Cms.Core;
|
||||||
using Umbraco.Cms.Core.Mapping;
|
using Umbraco.Cms.Core.Mapping;
|
||||||
@@ -11,6 +11,7 @@ using Umbraco.Cms.Core.Services.OperationStatus;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.Language;
|
namespace Umbraco.Cms.Api.Management.Controllers.Language;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class UpdateLanguageController : LanguageControllerBase
|
public class UpdateLanguageController : LanguageControllerBase
|
||||||
{
|
{
|
||||||
private readonly ILanguageService _languageService;
|
private readonly ILanguageService _languageService;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
@@ -12,6 +13,7 @@ using LogLevel = Umbraco.Cms.Core.Logging.LogLevel;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.LogViewer;
|
namespace Umbraco.Cms.Api.Management.Controllers.LogViewer;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class AllLogViewerController : LogViewerControllerBase
|
public class AllLogViewerController : LogViewerControllerBase
|
||||||
{
|
{
|
||||||
private readonly ILogViewerService _logViewerService;
|
private readonly ILogViewerService _logViewerService;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using Asp.Versioning;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
||||||
@@ -11,6 +12,7 @@ using Umbraco.New.Cms.Core.Models;
|
|||||||
|
|
||||||
namespace Umbraco.Cms.Api.Management.Controllers.LogViewer;
|
namespace Umbraco.Cms.Api.Management.Controllers.LogViewer;
|
||||||
|
|
||||||
|
[ApiVersion("1.0")]
|
||||||
public class AllMessageTemplateLogViewerController : LogViewerControllerBase
|
public class AllMessageTemplateLogViewerController : LogViewerControllerBase
|
||||||
{
|
{
|
||||||
private readonly ILogViewerService _logViewerService;
|
private readonly ILogViewerService _logViewerService;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user