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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user