Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
4a3b23a
Update README.md with information about the forum
OwainWilliams Sep 25, 2025
c46f94b
Merge pull request #1 from OwainWilliams/OwainWilliams-patch-1
OwainWilliams Sep 25, 2025
e2e65af
Merge branch 'umbraco:main' into main
OwainWilliams Oct 18, 2025
b371be0
[TASK] Initial update of some Management API endpoints
Oct 18, 2025
3ddac22
Update src/Umbraco.Cms.Api.Management/Controllers/Culture/AllCultureC…
OwainWilliams Oct 18, 2025
d591d3a
Update src/Umbraco.Cms.Api.Management/Controllers/DocumentVersion/Upd…
OwainWilliams Oct 18, 2025
3df76dd
Update src/Umbraco.Cms.Api.Management/Controllers/DocumentVersion/ByK…
OwainWilliams Oct 18, 2025
71f6fe0
Update src/Umbraco.Cms.Api.Management/Controllers/DocumentVersion/All…
OwainWilliams Oct 18, 2025
d265c07
[UPDATE] Small grammer update
Oct 18, 2025
12c421d
Update src/Umbraco.Cms.Api.Management/Controllers/Culture/AllCultureC…
OwainWilliams Oct 20, 2025
5391fe4
Update src/Umbraco.Cms.Api.Management/Controllers/Culture/AllCultureC…
OwainWilliams Oct 20, 2025
74bdcad
Update src/Umbraco.Cms.Api.Management/Controllers/DocumentVersion/All…
OwainWilliams Oct 20, 2025
ae9151c
Update src/Umbraco.Cms.Api.Management/Controllers/DocumentVersion/All…
OwainWilliams Oct 20, 2025
cef1142
Update src/Umbraco.Cms.Api.Management/Controllers/DocumentVersion/ByK…
OwainWilliams Oct 20, 2025
018b2ba
Update src/Umbraco.Cms.Api.Management/Controllers/DocumentVersion/ByK…
OwainWilliams Oct 20, 2025
8603155
Update src/Umbraco.Cms.Api.Management/Controllers/DocumentVersion/Rol…
OwainWilliams Oct 20, 2025
aa055d4
Update src/Umbraco.Cms.Api.Management/Controllers/DocumentVersion/Rol…
OwainWilliams Oct 20, 2025
3d655c5
Update src/Umbraco.Cms.Api.Management/Controllers/DocumentVersion/Upd…
OwainWilliams Oct 20, 2025
9a89705
Update src/Umbraco.Cms.Api.Management/Controllers/DocumentVersion/Upd…
OwainWilliams Oct 20, 2025
1e6c9f8
[WIP] Data Types
Oct 20, 2025
55d0045
[WIP] Update ByKey and Configuration DataTypes
Oct 21, 2025
280a6f7
[AMEND] Add additional Summary and Descritpion to API endpoints on Da…
Oct 29, 2025
00c27ec
[AMEND] Filter / Folder / Item / References / Tree API update
Oct 29, 2025
ce1e673
[MERGE] V17
Oct 30, 2025
d657af4
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Configurat…
OwainWilliams Oct 30, 2025
15d915d
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/CopyDataTy…
OwainWilliams Oct 30, 2025
76a8739
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/CopyDataTy…
OwainWilliams Oct 30, 2025
e0aff15
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/DeleteData…
OwainWilliams Oct 30, 2025
4010422
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Tree/RootD…
OwainWilliams Oct 30, 2025
38979dc
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Tree/Sibli…
OwainWilliams Oct 30, 2025
773617f
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Tree/Sibli…
OwainWilliams Oct 30, 2025
5fb8e6b
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/UpdateData…
OwainWilliams Oct 30, 2025
ebdd4f0
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/UpdateData…
OwainWilliams Oct 30, 2025
ec5a0a9
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/DeleteData…
OwainWilliams Oct 30, 2025
8074ba8
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Filter/Fil…
OwainWilliams Oct 30, 2025
c6ad3b6
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Folder/ByK…
OwainWilliams Oct 30, 2025
d16f942
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Tree/Child…
OwainWilliams Oct 30, 2025
b95445b
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Folder/ByK…
OwainWilliams Oct 30, 2025
0a7497b
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Folder/Del…
OwainWilliams Oct 30, 2025
9af8a06
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Folder/Upd…
OwainWilliams Oct 30, 2025
26bb1b1
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Folder/Del…
OwainWilliams Oct 30, 2025
ebec197
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Tree/Child…
OwainWilliams Oct 30, 2025
73fd581
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Folder/Upd…
OwainWilliams Oct 30, 2025
2a676ea
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Folder/Cre…
OwainWilliams Oct 30, 2025
42e7baa
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Item/ItemD…
OwainWilliams Oct 30, 2025
b7ffa2d
Merge branch 'v16/task/updating-managment-api-descritpions-and-summar…
Oct 30, 2025
8d95163
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Item/ItemD…
OwainWilliams Oct 30, 2025
578c410
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Tree/Ances…
OwainWilliams Oct 30, 2025
28de6f5
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Item/Searc…
OwainWilliams Oct 30, 2025
ef75901
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/MoveDataTy…
OwainWilliams Oct 30, 2025
cc0b30f
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/MoveDataTy…
OwainWilliams Oct 30, 2025
184fc94
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/References…
OwainWilliams Oct 30, 2025
502c58b
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Tree/Ances…
OwainWilliams Oct 30, 2025
3a6ba60
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/References…
OwainWilliams Oct 30, 2025
66e8aa8
Update src/Umbraco.Cms.Api.Management/Controllers/DataType/Tree/RootD…
OwainWilliams Oct 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public AllCultureController(IUmbracoMapper umbracoMapper, ICultureService cultur
[HttpGet]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(PagedViewModel<CultureReponseModel>), StatusCodes.Status200OK)]
[EndpointSummary("Gets a paginated collection of cultures available for creating languages.")]
[EndpointDescription("Gets a paginated collection containing the English and localized names of all available cultures.")]
public Task<PagedViewModel<CultureReponseModel>> GetAll(CancellationToken cancellationToken, int skip = 0, int take = 100)
{
CultureInfo[] all = _cultureService.GetValidCultureInfos();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Asp.Versioning;
using Asp.Versioning;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Umbraco.Cms.Api.Management.ViewModels.DataType;
Expand All @@ -24,6 +24,8 @@ public ByKeyDataTypeController(IDataTypeService dataTypeService, IUmbracoMapper
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(DataTypeResponseModel), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[EndpointSummary("Get a data type by the provided Id.")]
[EndpointDescription("Get a data type by using the provided Id and the result returns the data types' properties.")]
public async Task<IActionResult> ByKey(CancellationToken cancellationToken, Guid id)
{
IDataType? dataType = await _dataTypeService.GetAsync(id);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Asp.Versioning;
using Asp.Versioning;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
Expand All @@ -18,6 +18,8 @@ public class ConfigurationDataTypeController : DataTypeControllerBase
[HttpGet("configuration")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(DatatypeConfigurationResponseModel), StatusCodes.Status200OK)]
[EndpointSummary("Gets the data type configuration.")]
[EndpointDescription("Gets the data type configuration settings.")]
public Task<IActionResult> Configuration(CancellationToken cancellationToken)
{
var responseModel = new DatatypeConfigurationResponseModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public CopyDataTypeController(IDataTypeService dataTypeService, IBackOfficeSecur
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status201Created)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[EndpointSummary("Copies a data type.")]
[EndpointDescription("Creates a duplicate of an existing data type identified by the provided unique Id. The copied data type will be given a new Id and have ' (copy)' appended to its name. Optionally, the copy can be placed in a specific container by providing a target container Id.")]
public async Task<IActionResult> Copy(CancellationToken cancellationToken, Guid id, CopyDataTypeRequestModel copyDataTypeRequestModel)
{
IDataType? source = await _dataTypeService.GetAsync(id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public CreateDataTypeController(IDataTypeService dataTypeService, IDataTypePrese
[ProducesResponseType(StatusCodes.Status201Created)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[EndpointSummary("Creates a new data type.")]
[EndpointDescription("Creates a new data type with the provided configuration.")]
public async Task<IActionResult> Create(CancellationToken cancellationToken, CreateDataTypeRequestModel createDataTypeRequestModel)
{
var attempt = await _dataTypePresentationFactory.CreateAsync(createDataTypeRequestModel);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public DeleteDataTypeController(IDataTypeService dataTypeService, IBackOfficeSec
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[EndpointSummary("Deletes a data type.")]
[EndpointDescription("Deletes a data type identified by the provided Id.")]
public async Task<IActionResult> Delete(CancellationToken cancellationToken, Guid id)
{
Attempt<IDataType?, DataTypeOperationStatus> result = await _dataTypeService.DeleteAsync(id, CurrentUserKey(_backOfficeSecurityAccessor));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Asp.Versioning;
using Asp.Versioning;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Umbraco.Cms.Api.Common.ViewModels.Pagination;
Expand Down Expand Up @@ -26,6 +26,8 @@ public FilterDataTypeFilterController(IDataTypeService dataTypeService, IUmbraco
[HttpGet]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(PagedViewModel<DataTypeItemResponseModel>), StatusCodes.Status200OK)]
[EndpointSummary("Gets a filtered collection of data types.")]
[EndpointDescription("Filters data types by name, editor UI alias, and editor alias with pagination support.")]
public async Task<IActionResult> Filter(
CancellationToken cancellationToken,
int skip = 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Asp.Versioning;
using Asp.Versioning;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Umbraco.Cms.Api.Management.ViewModels.Folder;
Expand All @@ -21,5 +21,7 @@ public ByKeyDataTypeFolderController(
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(FolderResponseModel), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[EndpointSummary("Gets a data type folder.")]
[EndpointDescription("Gets a data type folder by identified by the provided Id. The result returns the folder's properties.")]
public async Task<IActionResult> ByKey(CancellationToken cancellationToken, Guid id) => await GetFolderAsync(id);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Asp.Versioning;
using Asp.Versioning;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Umbraco.Cms.Api.Management.ViewModels.Folder;
Expand All @@ -22,6 +22,8 @@ public CreateDataTypeFolderController(
[ProducesResponseType(StatusCodes.Status201Created)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[EndpointSummary("Creates a data type folder.")]
[EndpointDescription("Creates a data type folder with the details provided in the request model.")]
public async Task<IActionResult> Create(CancellationToken cancellationToken, CreateFolderRequestModel createFolderRequestModel)
=> await CreateFolderAsync<ByKeyDataTypeFolderController>(
createFolderRequestModel,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Asp.Versioning;
using Asp.Versioning;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Umbraco.Cms.Core.Security;
Expand All @@ -21,5 +21,7 @@ public DeleteDataTypeFolderController(
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[EndpointSummary("Deletes a data type folder.")]
[EndpointDescription("Deletes a data type folder identified by the provided Id.")]
public async Task<IActionResult> Delete(CancellationToken cancellationToken, Guid id) => await DeleteFolderAsync(id);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Asp.Versioning;
using Asp.Versioning;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Umbraco.Cms.Api.Management.ViewModels.Folder;
Expand All @@ -22,6 +22,8 @@ public UpdateDataTypeFolderController(
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[EndpointSummary("Updates a data type folder.")]
[EndpointDescription("Updates a data type folder identified by the provided Id with the details provided in the request model.")]
public async Task<IActionResult> Update(
CancellationToken cancellationToken,
Guid id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public IsUsedDataTypeController(IDataTypeUsageService dataTypeUsageService)
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(bool), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[EndpointSummary("Check if a data type is used.")]
[EndpointDescription("Checks if the data type with the provided Id is used in any content, media, or members.")]
public async Task<IActionResult> IsUsed(CancellationToken cancellationToken, Guid id)
{
Attempt<bool, DataTypeOperationStatus> result = await _dataTypeUsageService.HasSavedValuesAsync(id);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Asp.Versioning;
using Asp.Versioning;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Umbraco.Cms.Api.Management.ViewModels.DataType.Item;
Expand All @@ -23,6 +23,8 @@ public ItemDatatypeItemController(IDataTypeService dataTypeService, IUmbracoMapp
[HttpGet]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(IEnumerable<DataTypeItemResponseModel>), StatusCodes.Status200OK)]
[EndpointSummary("Gets a collection of data type items.")]
[EndpointDescription("Get a collection of data type items identified by the provided Ids. Each result contains the data types' properties.")]
public async Task<IActionResult> Item(
CancellationToken cancellationToken,
[FromQuery(Name = "id")] HashSet<Guid> ids)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Asp.Versioning;
using Asp.Versioning;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Umbraco.Cms.Api.Management.ViewModels.DataType.Item;
Expand Down Expand Up @@ -26,6 +26,8 @@ public SearchDataTypeItemController(IEntitySearchService entitySearchService, ID
[HttpGet("search")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(PagedModel<DataTypeItemResponseModel>), StatusCodes.Status200OK)]
[EndpointSummary("Search data types by query.")]
[EndpointDescription("Gets a paged collection of data type items identified by provided query.")]
public async Task<IActionResult> Search(CancellationToken cancellationToken, string query, int skip = 0, int take = 100)
{
PagedModel<IEntitySlim> searchResult = _entitySearchService.Search(UmbracoObjectTypes.DataType, query, skip, take);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public MoveDataTypeController(IDataTypeService dataTypeService, IBackOfficeSecur
[MapToApiVersion("1.0")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[EndpointSummary("Moves a data type.")]
[EndpointDescription("Moves an existing data type identified by Id to a different container. The target container Id must be provided in the request model.")]
public async Task<IActionResult> Move(CancellationToken cancellationToken, Guid id, MoveDataTypeRequestModel moveDataTypeRequestModel)
{
IDataType? source = await _dataTypeService.GetAsync(id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public ReferencedByDataTypeController(IDataTypeService dataTypeService, IRelatio
[HttpGet("{id:guid}/referenced-by")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(PagedViewModel<IReferenceResponseModel>), StatusCodes.Status200OK)]
[EndpointSummary("Gets a paged collection of entities that are referenced by a data type.")]
[EndpointDescription("Gets a paged collection of entities that are referenced by the data type with the provided Id, so you can see where it is being used.")]
public async Task<ActionResult<PagedViewModel<IReferenceResponseModel>>> ReferencedBy(
CancellationToken cancellationToken,
Guid id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public AncestorsDataTypeTreeController(IEntityService entityService, FlagProvide
[HttpGet("ancestors")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(IEnumerable<DataTypeTreeItemResponseModel>), StatusCodes.Status200OK)]
[EndpointSummary("Gets a collection of ancestor data type folders.")]
[EndpointDescription("Gets a collection of data type folders that are ancestors to the provided Id. The result returns the ancestor folders' properties.")]
public async Task<ActionResult<IEnumerable<DataTypeTreeItemResponseModel>>> Ancestors(CancellationToken cancellationToken, Guid descendantId)
=> await GetAncestors(descendantId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public ChildrenDataTypeTreeController(IEntityService entityService, FlagProvider
[HttpGet("children")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(PagedViewModel<DataTypeTreeItemResponseModel>), StatusCodes.Status200OK)]
[EndpointSummary("Gets a collection of data type tree child items.")]
[EndpointDescription("Gets a paged collection of data type tree items that are children of the provided parent Id. The collection can be optionally filtered to return only folder, or folders and data types. The result returns the data type tree items' properties.")]
public async Task<ActionResult<PagedViewModel<DataTypeTreeItemResponseModel>>> Children(CancellationToken cancellationToken, Guid parentId, int skip = 0, int take = 100, bool foldersOnly = false)
{
RenderFoldersOnly(foldersOnly);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public RootDataTypeTreeController(IEntityService entityService, FlagProviderColl
[HttpGet("root")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(PagedViewModel<DataTypeTreeItemResponseModel>), StatusCodes.Status200OK)]
[EndpointSummary("Gets a collection of data type items from the root of the data type tree.")]
[EndpointDescription("Gets a paged collection of data type items from the root of the data type tree. The collection can be optionally filtered to return only folder, or folders and data types. The result returns the data type tree items' properties.")]
public async Task<ActionResult<PagedViewModel<DataTypeTreeItemResponseModel>>> Root(CancellationToken cancellationToken, int skip = 0, int take = 100, bool foldersOnly = false)
{
RenderFoldersOnly(foldersOnly);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public SiblingsDataTypeTreeController(IEntityService entityService, FlagProvider

[HttpGet("siblings")]
[ProducesResponseType(typeof(SubsetViewModel<DataTypeTreeItemResponseModel>), StatusCodes.Status200OK)]
[EndpointSummary("Gets a collection of data type tree sibling items.")]
[EndpointDescription("Gets a paged collection of data type tree items that are siblings of the provided parent Id. The collection can be optionally filtered to return only folder, or folders and data types. The result returns the data type tree items' properties.")]
public async Task<ActionResult<SubsetViewModel<DataTypeTreeItemResponseModel>>> Siblings(CancellationToken cancellationToken, Guid target, int before, int after, bool foldersOnly = false)
{
RenderFoldersOnly(foldersOnly);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public UpdateDataTypeController(IDataTypeService dataTypeService, IBackOfficeSec
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[EndpointSummary("Updates a data type.")]
[EndpointDescription("Updates a data type by identified by the provided Id with the details provided in the request model.")]
public async Task<IActionResult> Update(CancellationToken cancellationToken, Guid id, UpdateDataTypeRequestModel updateDataTypeViewModel)
{
IDataType? current = await _dataTypeService.GetAsync(id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public AllDocumentVersionController(
[ProducesResponseType(typeof(PagedViewModel<DocumentVersionItemResponseModel>), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
[EndpointSummary("Gets a paginated collection of versions for a specific document.")]
[EndpointDescription("Gets a paginated collection of versions for a specific document and optional culture. Each result describes the version and includes details of the document type, editor, version date, and published status.")]
public async Task<IActionResult> All(
CancellationToken cancellationToken,
[Required] Guid documentId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public ByKeyDocumentVersionController(
[ProducesResponseType(typeof(DocumentVersionResponseModel), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
[EndpointSummary("Gets a specific document version.")]
[EndpointDescription("Gets a specific document version by its Id. If found, the result describes the version and includes details of the document type, editor, version date, and published status.")]
public async Task<IActionResult> ByKey(CancellationToken cancellationToken, Guid id)
{
Attempt<IContent?, ContentVersionOperationStatus> attempt =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public RollbackDocumentVersionController(
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
[EndpointSummary("Rolls back a document to a specific version.")]
[EndpointDescription("Rolls back a document to the version indicated by the provided Id. This will archive the current version of the document and publish the provided one.")]
public async Task<IActionResult> Rollback(CancellationToken cancellationToken, Guid id, string? culture)
{
Attempt<IContent?, ContentVersionOperationStatus> getContentAttempt =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public UpdatePreventCleanupDocumentVersionController(
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
[EndpointSummary("Sets the prevent clean up status for a document version.")]
[EndpointDescription("Sets the prevent clean up boolean status for a document version to the provided value. This controls whether the version will be a candidate for removal in content history clean up.")]
public async Task<IActionResult> Set(CancellationToken cancellationToken, Guid id, bool preventCleanup)
{
Attempt<ContentVersionOperationStatus> attempt =
Expand Down
Loading