Skip to content

Commit 539a4bb

Browse files
CopilotAndyButland
andcommitted
Fix concatenated words, duplicate attributes, and missing using statements
Co-authored-by: AndyButland <[email protected]>
1 parent 503d5cc commit 539a4bb

14 files changed

+24
-25
lines changed

src/Umbraco.Cms.Api.Management/Controllers/DocumentType/CreateDocumentTypeController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public CreateDocumentTypeController(
3737
[ProducesResponseType(StatusCodes.Status201Created)]
3838
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
3939
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
40-
[EndpointSummary("Creates a new documenttype.")]
41-
[EndpointDescription("Creates a new documenttype with the configuration specified in the request model.")]
40+
[EndpointSummary("Creates a new document type.")]
41+
[EndpointDescription("Creates a new document type with the configuration specified in the request model.")]
4242
public async Task<IActionResult> Create(
4343
CancellationToken cancellationToken,
4444
CreateDocumentTypeRequestModel requestModel)

src/Umbraco.Cms.Api.Management/Controllers/DocumentType/Folder/CreateDocumentTypeFolderController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public CreateDocumentTypeFolderController(
2222
[ProducesResponseType(StatusCodes.Status201Created)]
2323
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
2424
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
25-
[EndpointSummary("Creates a documenttype folder.")]
26-
[EndpointDescription("Creates a new documenttype folder with the provided name and parent location.")]
25+
[EndpointSummary("Creates a document type folder.")]
26+
[EndpointDescription("Creates a new document type folder with the provided name and parent location.")]
2727
public async Task<IActionResult> Create(
2828
CancellationToken cancellationToken,
2929
CreateFolderRequestModel createFolderRequestModel)

src/Umbraco.Cms.Api.Management/Controllers/DocumentType/Item/ItemDocumentTypeItemController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public ItemDocumentTypeItemController(IContentTypeService contentTypeService, IU
2323
[HttpGet]
2424
[MapToApiVersion("1.0")]
2525
[ProducesResponseType(typeof(IEnumerable<DocumentTypeItemResponseModel>), StatusCodes.Status200OK)]
26-
[EndpointSummary("Gets a collection of documenttype items.")]
27-
[EndpointDescription("Gets a collection of documenttype items identified by the provided Ids.")]
26+
[EndpointSummary("Gets a collection of document type items.")]
27+
[EndpointDescription("Gets a collection of document type items identified by the provided Ids.")]
2828
public Task<IActionResult> Item(
2929
CancellationToken cancellationToken,
3030
[FromQuery(Name = "id")] HashSet<Guid> ids)

src/Umbraco.Cms.Api.Management/Controllers/MediaType/CreateMediaTypeController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public CreateMediaTypeController(
3737
[ProducesResponseType(StatusCodes.Status201Created)]
3838
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
3939
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
40-
[EndpointSummary("Creates a new mediatype.")]
41-
[EndpointDescription("Creates a new mediatype with the configuration specified in the request model.")]
40+
[EndpointSummary("Creates a new media type.")]
41+
[EndpointDescription("Creates a new media type with the configuration specified in the request model.")]
4242
public async Task<IActionResult> Create(
4343
CancellationToken cancellationToken,
4444
CreateMediaTypeRequestModel requestModel)

src/Umbraco.Cms.Api.Management/Controllers/MediaType/Folder/CreateMediaTypeFolderController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public CreateMediaTypeFolderController(
2222
[ProducesResponseType(StatusCodes.Status201Created)]
2323
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
2424
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
25-
[EndpointSummary("Creates a mediatype folder.")]
26-
[EndpointDescription("Creates a new mediatype folder with the provided name and parent location.")]
25+
[EndpointSummary("Creates a media type folder.")]
26+
[EndpointDescription("Creates a new media type folder with the provided name and parent location.")]
2727
public async Task<IActionResult> Create(
2828
CancellationToken cancellationToken,
2929
CreateFolderRequestModel createFolderRequestModel)

src/Umbraco.Cms.Api.Management/Controllers/MediaType/Item/ItemMediaTypeItemController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public ItemMediaTypeItemController(IMediaTypeService mediaTypeService, IUmbracoM
2323
[HttpGet]
2424
[MapToApiVersion("1.0")]
2525
[ProducesResponseType(typeof(IEnumerable<MediaTypeItemResponseModel>), StatusCodes.Status200OK)]
26-
[EndpointSummary("Gets a collection of mediatype items.")]
27-
[EndpointDescription("Gets a collection of mediatype items identified by the provided Ids.")]
26+
[EndpointSummary("Gets a collection of media type items.")]
27+
[EndpointDescription("Gets a collection of media type items identified by the provided Ids.")]
2828
public Task<IActionResult> Item(
2929
CancellationToken cancellationToken,
3030
[FromQuery(Name = "id")] HashSet<Guid> ids)

src/Umbraco.Cms.Api.Management/Controllers/MemberType/CreateMemberTypeController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public CreateMemberTypeController(
3737
[ProducesResponseType(StatusCodes.Status201Created)]
3838
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
3939
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
40-
[EndpointSummary("Creates a new membertype.")]
41-
[EndpointDescription("Creates a new membertype with the configuration specified in the request model.")]
40+
[EndpointSummary("Creates a new member type.")]
41+
[EndpointDescription("Creates a new member type with the configuration specified in the request model.")]
4242
public async Task<IActionResult> Create(
4343
CancellationToken cancellationToken,
4444
CreateMemberTypeRequestModel requestModel)

src/Umbraco.Cms.Api.Management/Controllers/MemberType/Folder/CreateMemberTypeFolderController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public CreateMemberTypeFolderController(
2222
[ProducesResponseType(StatusCodes.Status201Created)]
2323
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
2424
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status404NotFound)]
25-
[EndpointSummary("Creates a membertype folder.")]
26-
[EndpointDescription("Creates a new membertype folder with the provided name and parent location.")]
25+
[EndpointSummary("Creates a member type folder.")]
26+
[EndpointDescription("Creates a new member type folder with the provided name and parent location.")]
2727
public async Task<IActionResult> Create(
2828
CancellationToken cancellationToken,
2929
CreateFolderRequestModel createFolderRequestModel)

src/Umbraco.Cms.Api.Management/Controllers/MemberType/Item/ItemMemberTypeItemController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public ItemMemberTypeItemController(IUmbracoMapper mapper, IMemberTypeService me
2323
[HttpGet]
2424
[MapToApiVersion("1.0")]
2525
[ProducesResponseType(typeof(IEnumerable<MemberTypeItemResponseModel>), StatusCodes.Status200OK)]
26-
[EndpointSummary("Gets a collection of membertype items.")]
27-
[EndpointDescription("Gets a collection of membertype items identified by the provided Ids.")]
26+
[EndpointSummary("Gets a collection of member type items.")]
27+
[EndpointDescription("Gets a collection of member type items identified by the provided Ids.")]
2828
public Task<IActionResult> Item(
2929
CancellationToken cancellationToken,
3030
[FromQuery(Name = "id")] HashSet<Guid> ids)

src/Umbraco.Cms.Api.Management/Controllers/RedirectUrlManagement/GetStatusRedirectUrlManagementController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using Microsoft.AspNetCore.Mvc;
33
using Umbraco.Cms.Api.Management.Factories;
44
using Umbraco.Cms.Api.Management.ViewModels.RedirectUrlManagement;
5+
using Microsoft.AspNetCore.Http;
56

67
namespace Umbraco.Cms.Api.Management.Controllers.RedirectUrlManagement;
78

0 commit comments

Comments
 (0)