CRUD API for media + get-by-id for media type (#13934)

* CRUD API for media + get by ID for media types

* A little housekeeping for documents (align with media)

* Update Open API json

* Add messages to NotFound results (both content and media)

* Review changes; use same model for content and media URLs + return bad request when trying to move something to trash that is already in trash

* Fix bad merge + rename base (response) classes appropriately between both media and content types
This commit is contained in:
Kenn Jacobsen
2023-03-13 15:02:30 +01:00
committed by GitHub
parent 8df3bca5fe
commit c0975f341c
51 changed files with 1192 additions and 146 deletions

View File

@@ -11,4 +11,5 @@ namespace Umbraco.Cms.Api.Management.Controllers.Document;
[ApiExplorerSettings(GroupName = nameof(Constants.UdiEntityType.Document))]
public abstract class DocumentControllerBase : ContentControllerBase
{
protected IActionResult DocumentNotFound() => NotFound("The requested Document could not be found");
}