* 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>
12 lines
266 B
C#
12 lines
266 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Umbraco.Cms.Core.Models;
|
|
|
|
namespace Umbraco.Cms.Api.Management.Factories;
|
|
|
|
public interface IUdtFileContentFactory
|
|
{
|
|
FileContentResult Create(IContentType contentType);
|
|
|
|
FileContentResult Create(IMediaType mediaType);
|
|
}
|