* Updated API version package and moved attribute to each controller as it cannot be inherited. * Ignore "$type" on types implementing interfaces in the delivery api
24 lines
923 B
C#
24 lines
923 B
C#
using Asp.Versioning;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Umbraco.Cms.Core.Services;
|
|
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
|
|
using Umbraco.Cms.Api.Management.ViewModels.Tree;
|
|
|
|
namespace Umbraco.Cms.Api.Management.Controllers.DocumentBlueprint.Tree;
|
|
|
|
[ApiVersion("1.0")]
|
|
public class RootDocumentBlueprintTreeController : DocumentBlueprintTreeControllerBase
|
|
{
|
|
public RootDocumentBlueprintTreeController(IEntityService entityService, IContentTypeService contentTypeService)
|
|
: base(entityService, contentTypeService)
|
|
{
|
|
}
|
|
|
|
[HttpGet("root")]
|
|
[MapToApiVersion("1.0")]
|
|
[ProducesResponseType(typeof(PagedViewModel<DocumentBlueprintTreeItemResponseModel>), StatusCodes.Status200OK)]
|
|
public async Task<ActionResult<PagedViewModel<DocumentBlueprintTreeItemResponseModel>>> Root(int skip = 0, int take = 100)
|
|
=> await GetRoot(skip, take);
|
|
}
|