Skip to content

Commit 503d5cc

Browse files
CopilotAndyButland
andcommitted
Add final endpoint descriptions - 434 of 441 endpoints now documented
Co-authored-by: AndyButland <[email protected]>
1 parent 797f757 commit 503d5cc

File tree

34 files changed

+68
-0
lines changed

34 files changed

+68
-0
lines changed

src/Umbraco.Cms.Api.Management/Controllers/Document/RecycleBin/ReferencedByDocumentRecycleBinController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public ReferencedByDocumentRecycleBinController(
3232
[HttpGet("referenced-by")]
3333
[MapToApiVersion("1.0")]
3434
[ProducesResponseType(typeof(PagedViewModel<IReferenceResponseModel>), StatusCodes.Status200OK)]
35+
[EndpointSummary("Gets items referencing a document in the recycle bin.")]
36+
[EndpointDescription("Gets a paginated collection of items that reference the document in the recycle bin.")]
3537
public async Task<ActionResult<PagedViewModel<IReferenceResponseModel>>> ReferencedBy(
3638
CancellationToken cancellationToken,
3739
int skip = 0,

src/Umbraco.Cms.Api.Management/Controllers/Document/RecycleBin/RootDocumentRecycleBinController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public RootDocumentRecycleBinController(IEntityService entityService, IDocumentP
1919
[HttpGet("root")]
2020
[MapToApiVersion("1.0")]
2121
[ProducesResponseType(typeof(PagedViewModel<DocumentRecycleBinItemResponseModel>), StatusCodes.Status200OK)]
22+
[EndpointSummary("Gets documents at the root of the recycle bin.")]
23+
[EndpointDescription("Gets a paginated collection of documents at the root level of the recycle bin.")]
2224
public async Task<ActionResult<PagedViewModel<DocumentRecycleBinItemResponseModel>>> Root(
2325
CancellationToken cancellationToken,
2426
int skip = 0,

src/Umbraco.Cms.Api.Management/Controllers/Document/RecycleBin/SiblingsDocumentRecycleBinController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public SiblingsDocumentRecycleBinController(IEntityService entityService, IDocum
1919
[HttpGet("siblings")]
2020
[MapToApiVersion("1.0")]
2121
[ProducesResponseType(typeof(SubsetViewModel<DocumentRecycleBinItemResponseModel>), StatusCodes.Status200OK)]
22+
[EndpointSummary("Gets sibling documents in the recycle bin.")]
23+
[EndpointDescription("Gets a collection of sibling documents in the recycle bin at the same level as the provided Id.")]
2224
public async Task<ActionResult<SubsetViewModel<DocumentRecycleBinItemResponseModel>>> Siblings(CancellationToken cancellationToken, Guid target, int before, int after, Guid? dataTypeId = null)
2325
=> await GetSiblings(target, before, after);
2426
}

src/Umbraco.Cms.Api.Management/Controllers/Document/References/ReferencedDescendantsDocumentController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public ReferencedDescendantsDocumentController(ITrackedReferencesService tracked
3232
[HttpGet("{id:guid}/referenced-descendants")]
3333
[MapToApiVersion("1.0")]
3434
[ProducesResponseType(typeof(PagedViewModel<ReferenceByIdModel>), StatusCodes.Status200OK)]
35+
[EndpointSummary("Gets document descendants that are referenced.")]
36+
[EndpointDescription("Gets a paginated collection of descendant documents that are referenced by other content.")]
3537
public async Task<ActionResult<PagedViewModel<ReferenceByIdModel>>> ReferencedDescendants(
3638
CancellationToken cancellationToken,
3739
Guid id,

src/Umbraco.Cms.Api.Management/Controllers/DynamicRoot/GetDynamicRootController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public GetRootsController(IDynamicRootService dynamicRootService, IUmbracoMapper
2828
[HttpPost("query")]
2929
[MapToApiVersion("1.0")]
3030
[ProducesResponseType(typeof(DynamicRootResponseModel), StatusCodes.Status200OK)]
31+
[EndpointSummary("Gets dynamic roots.")]
32+
[EndpointDescription("Gets a collection of dynamic root items based on the provided query configuration.")]
3133
public async Task<IActionResult> GetRoots(CancellationToken cancellationToken, DynamicRootRequestModel model)
3234
{
3335
_backOfficeVariationContextAccessor.VariationContext = new BackOfficeVariationContext(model.Context.Culture, model.Context.Segment);

src/Umbraco.Cms.Api.Management/Controllers/DynamicRoot/GetQueryStepsController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public GetQueryStepsController(DynamicRootQueryStepCollection dynamicRootQuerySt
2121
[HttpGet($"steps")]
2222
[MapToApiVersion("1.0")]
2323
[ProducesResponseType(typeof(IEnumerable<string>), StatusCodes.Status200OK)]
24+
[EndpointSummary("Gets dynamic root query steps.")]
25+
[EndpointDescription("Gets a collection of available query steps for configuring dynamic root queries.")]
2426
public Task<IActionResult> GetQuerySteps(CancellationToken cancellationToken)
2527
{
2628
IEnumerable<string> querySteps = _dynamicRootQueryStepCollection.Select(x => x.SupportedDirectionAlias);

src/Umbraco.Cms.Api.Management/Controllers/HealthCheck/ExecuteActionHealthCheckController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public ExecuteActionHealthCheckController(
3838
[MapToApiVersion("1.0")]
3939
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
4040
[ProducesResponseType(typeof(HealthCheckResultResponseModel), StatusCodes.Status200OK)]
41+
[EndpointSummary("Executes a health check action.")]
42+
[EndpointDescription("Executes a specific action to fix or address a health check issue.")]
4143
public async Task<ActionResult<HealthCheckResultResponseModel>> ExecuteAction(
4244
CancellationToken cancellationToken,
4345
HealthCheckActionRequestModel action)

src/Umbraco.Cms.Api.Management/Controllers/Install/ValidateDatabaseInstallController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public ValidateDatabaseInstallController(
2828
[MapToApiVersion("1.0")]
2929
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
3030
[ProducesResponseType(StatusCodes.Status200OK)]
31+
[EndpointSummary("Validates database connection.")]
32+
[EndpointDescription("Validates the database connection settings provided during installation.")]
3133
public async Task<IActionResult> ValidateDatabase(
3234
CancellationToken cancellationToken,
3335
DatabaseInstallRequestModel viewModel)

src/Umbraco.Cms.Api.Management/Controllers/Language/Item/DefaultLanguageEntityController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public DefaultLanguageEntityController(ILanguageService languageService, IUmbrac
2424
[HttpGet("default")]
2525
[MapToApiVersion("1.0")]
2626
[ProducesResponseType(typeof(LanguageItemResponseModel), StatusCodes.Status200OK)]
27+
[EndpointSummary("Gets the default language.")]
28+
[EndpointDescription("Gets the default language configured for the Umbraco installation.")]
2729
public async Task<IActionResult> Default(CancellationToken cancellationToken)
2830
{
2931
ILanguage? language = await _languageService.GetDefaultLanguageAsync();

src/Umbraco.Cms.Api.Management/Controllers/LogViewer/SavedSearch/ByNameSavedSearchLogViewerController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public ByNameSavedSearchLogViewerController(ILogViewerService logViewerService,
2929
[MapToApiVersion("1.0")]
3030
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
3131
[ProducesResponseType(typeof(SavedLogSearchResponseModel), StatusCodes.Status200OK)]
32+
[EndpointSummary("Gets a saved log search by name.")]
33+
[EndpointDescription("Gets a saved log search identified by the provided name.")]
3234
public async Task<IActionResult> ByName(
3335
CancellationToken cancellationToken,
3436
string name)

0 commit comments

Comments
 (0)