[V14] import/export media/document type endpoints (#16100)
* Working import/export media/document types * WIP * Refactoring of import doctype/media types - added analyze endpoint to extract relevant data without fully processing the file - split up import endpoints into POST & PUT - removed availableAtAction as the new endpoint allows clients to call the POST/PUT endpoints with confidence - Added a new service that is responsible for turning temp files into Import compatible XML and being able to extracty partial information from it * Wrap persistance access in scopes * Typos, formatting, clean-up * PR feedback * update openapi spec * Changed deleteFile flag to _temporaryFileService.EnlistDeleteIfScopeCompletes * Itty bitty typo * Moved magic cleanup into its own method so orchestration can decide when. --------- Co-authored-by: Sven Geusens <sge@umbraco.dk> Co-authored-by: kjac <kja@umbraco.dk>
This commit is contained in:
@@ -37,6 +37,7 @@ using Umbraco.Cms.Core.Services.ContentTypeEditing;
|
||||
using Umbraco.Cms.Core.DynamicRoot;
|
||||
using Umbraco.Cms.Core.Security.Authorization;
|
||||
using Umbraco.Cms.Core.Services.FileSystem;
|
||||
using Umbraco.Cms.Core.Services.ImportExport;
|
||||
using Umbraco.Cms.Core.Services.Querying.RecycleBin;
|
||||
using Umbraco.Cms.Core.Sync;
|
||||
using Umbraco.Cms.Core.Telemetry;
|
||||
@@ -395,6 +396,11 @@ namespace Umbraco.Cms.Core.DependencyInjection
|
||||
|
||||
// Segments
|
||||
Services.AddUnique<ISegmentService, NoopSegmentService>();
|
||||
|
||||
// definition Import/export
|
||||
Services.AddUnique<ITemporaryFileToXmlImportService, TemporaryFileToXmlImportService>();
|
||||
Services.AddUnique<IContentTypeImportService, ContentTypeImportService>();
|
||||
Services.AddUnique<IMediaTypeImportService, MediaTypeImportService>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user