V14: Fix composition endpoints namespaces (#15620)
* Fix namespace in media type related classes * Fix namespace in document type composition related classes
This commit is contained in:
committed by
GitHub
parent
e4f9f98f2d
commit
bb0395349f
@@ -2,19 +2,19 @@ using Asp.Versioning;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Umbraco.Cms.Api.Management.Factories;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType.Composition;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Services.ContentTypeEditing;
|
||||
|
||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Composition;
|
||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType;
|
||||
|
||||
[ApiVersion("1.0")]
|
||||
public class AvailableCompositionController : DocumentTypeControllerBase
|
||||
public class AvailableCompositionDocumentTypeController : DocumentTypeControllerBase
|
||||
{
|
||||
private readonly IContentTypeEditingService _contentTypeEditingService;
|
||||
private readonly IDocumentTypeEditingPresentationFactory _presentationFactory;
|
||||
|
||||
public AvailableCompositionController(IContentTypeEditingService contentTypeEditingService, IDocumentTypeEditingPresentationFactory presentationFactory)
|
||||
public AvailableCompositionDocumentTypeController(IContentTypeEditingService contentTypeEditingService, IDocumentTypeEditingPresentationFactory presentationFactory)
|
||||
{
|
||||
_contentTypeEditingService = contentTypeEditingService;
|
||||
_presentationFactory = presentationFactory;
|
||||
@@ -1,21 +1,21 @@
|
||||
using Asp.Versioning;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType.Composition;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType;
|
||||
using Umbraco.Cms.Core.Mapping;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
using Umbraco.Cms.Core.Services.OperationStatus;
|
||||
|
||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType.Composition;
|
||||
namespace Umbraco.Cms.Api.Management.Controllers.DocumentType;
|
||||
|
||||
[ApiVersion("1.0")]
|
||||
public class ReferencesCompositionController : DocumentTypeControllerBase
|
||||
public class CompositionReferenceDocumentTypeController : DocumentTypeControllerBase
|
||||
{
|
||||
private readonly IContentTypeService _contentTypeService;
|
||||
private readonly IUmbracoMapper _umbracoMapper;
|
||||
|
||||
public ReferencesCompositionController(IContentTypeService contentTypeService, IUmbracoMapper umbracoMapper)
|
||||
public CompositionReferenceDocumentTypeController(IContentTypeService contentTypeService, IUmbracoMapper umbracoMapper)
|
||||
{
|
||||
_contentTypeService = contentTypeService;
|
||||
_umbracoMapper = umbracoMapper;
|
||||
@@ -2,19 +2,19 @@ using Asp.Versioning;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Umbraco.Cms.Api.Management.Factories;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MediaType.Composition;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MediaType;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Services.ContentTypeEditing;
|
||||
|
||||
namespace Umbraco.Cms.Api.Management.Controllers.MediaType.Composition;
|
||||
namespace Umbraco.Cms.Api.Management.Controllers.MediaType;
|
||||
|
||||
[ApiVersion("1.0")]
|
||||
public class AvailableCompositionController : MediaTypeControllerBase
|
||||
public class AvailableCompositionMediaTypeController : MediaTypeControllerBase
|
||||
{
|
||||
private readonly IMediaTypeEditingService _mediaTypeEditingService;
|
||||
private readonly IMediaTypeEditingPresentationFactory _presentationFactory;
|
||||
|
||||
public AvailableCompositionController(IMediaTypeEditingService mediaTypeEditingService, IMediaTypeEditingPresentationFactory presentationFactory)
|
||||
public AvailableCompositionMediaTypeController(IMediaTypeEditingService mediaTypeEditingService, IMediaTypeEditingPresentationFactory presentationFactory)
|
||||
{
|
||||
_mediaTypeEditingService = mediaTypeEditingService;
|
||||
_presentationFactory = presentationFactory;
|
||||
@@ -1,21 +1,21 @@
|
||||
using Asp.Versioning;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MediaType.Composition;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MediaType;
|
||||
using Umbraco.Cms.Core.Mapping;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
using Umbraco.Cms.Core.Services.OperationStatus;
|
||||
|
||||
namespace Umbraco.Cms.Api.Management.Controllers.MediaType.Composition;
|
||||
namespace Umbraco.Cms.Api.Management.Controllers.MediaType;
|
||||
|
||||
[ApiVersion("1.0")]
|
||||
public class ReferencesCompositionController : MediaTypeControllerBase
|
||||
public class CompositionReferenceMediaTypeController : MediaTypeControllerBase
|
||||
{
|
||||
private readonly IMediaTypeService _mediaTypeService;
|
||||
private readonly IUmbracoMapper _umbracoMapper;
|
||||
|
||||
public ReferencesCompositionController(IMediaTypeService mediaTypeService, IUmbracoMapper umbracoMapper)
|
||||
public CompositionReferenceMediaTypeController(IMediaTypeService mediaTypeService, IUmbracoMapper umbracoMapper)
|
||||
{
|
||||
_mediaTypeService = mediaTypeService;
|
||||
_umbracoMapper = umbracoMapper;
|
||||
@@ -1,5 +1,4 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType.Composition;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Models.ContentTypeEditing;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType.Composition;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Models.ContentTypeEditing;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MediaType;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MediaType.Composition;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Models.ContentTypeEditing;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MediaType;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MediaType.Composition;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Models.ContentTypeEditing;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType.Composition;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.DocumentType;
|
||||
using Umbraco.Cms.Core.Mapping;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MediaType.Composition;
|
||||
using Umbraco.Cms.Api.Management.ViewModels.MediaType;
|
||||
using Umbraco.Cms.Core.Mapping;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.ContentType;
|
||||
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.DocumentType.Composition;
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.DocumentType;
|
||||
|
||||
public class AvailableDocumentTypeCompositionResponseModel : AvailableContentTypeCompositionResponseModelBase
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.ContentType;
|
||||
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.DocumentType.Composition;
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.DocumentType;
|
||||
|
||||
public class DocumentTypeCompositionRequestModel : ContentTypeCompositionRequestModelBase
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.ContentType;
|
||||
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.DocumentType.Composition;
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.DocumentType;
|
||||
|
||||
public class DocumentTypeCompositionResponseModel : ContentTypeCompositionResponseModelBase
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.ContentType;
|
||||
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.MediaType.Composition;
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.MediaType;
|
||||
|
||||
public class AvailableMediaTypeCompositionResponseModel : AvailableContentTypeCompositionResponseModelBase
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.ContentType;
|
||||
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.MediaType.Composition;
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.MediaType;
|
||||
|
||||
public class MediaTypeCompositionRequestModel : ContentTypeCompositionRequestModelBase
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Umbraco.Cms.Api.Management.ViewModels.ContentType;
|
||||
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.MediaType.Composition;
|
||||
namespace Umbraco.Cms.Api.Management.ViewModels.MediaType;
|
||||
|
||||
public class MediaTypeCompositionResponseModel : ContentTypeCompositionResponseModelBase
|
||||
{
|
||||
Reference in New Issue
Block a user