diff --git a/WebApi/Endpoints/PlayListEndpoints.cs b/WebApi/Endpoints/PlayListEndpoints.cs index da800c5..6f9c824 100644 --- a/WebApi/Endpoints/PlayListEndpoints.cs +++ b/WebApi/Endpoints/PlayListEndpoints.cs @@ -11,38 +11,38 @@ public static class PlayListEndpoints { public static IEndpointRouteBuilder MapPlayListEndpoints(this IEndpointRouteBuilder app) { - var group = app.MapGroup("/playlists") + var group = app.MapGroup("/playLists") .WithTags("PlayLists"); group.MapGet("/", GetPlayLists) .WithName("GetPlayLists") - .WithSummary("Get paginated playlists."); + .WithSummary("Get paginated playLists."); group.MapGet("/{id}", GetPlayListById) .WithName("GetPlayListById") - .WithSummary("Get a playlist by ID."); + .WithSummary("Get a playLists by ID."); group.MapGet("/users/{userId}", GetPlayListsByUserId) .WithName("GetPlayListsByUserId") - .WithSummary("Get paginated playlists for a user."); + .WithSummary("Get paginated playLists for a user."); group.MapPost("/users/{userId}", CreatePlayList) .WithName("CreatePlayList") - .WithSummary("Create a new playlist.") + .WithSummary("Create a new playLists.") .AddEndpointFilter>(); group.MapPut("/{playlistId}/users/{userId}", UpdatePlayList) .WithName("UpdatePlayList") - .WithSummary("Update an existing playlist.") + .WithSummary("Update an existing playLists.") .AddEndpointFilter>(); group.MapDelete("/{playlistId}/users/{userId}", DeletePlayList) .WithName("DeletePlayList") - .WithSummary("Delete a playlist."); + .WithSummary("Delete a playLists."); group.MapPost("/upload-picture/users/{userId}", RequestPlayListPictureUpload) .WithName("RequestPlayListPictureUpload") - .WithSummary("Request a pre-signed URL to upload a playlist picture.") + .WithSummary("Request a pre-signed URL to upload a playLists picture.") .AddEndpointFilter>(); return app; @@ -71,7 +71,7 @@ public static class PlayListEndpoints IMediator mediator, Guid userId, CancellationToken cancellationToken, - string? name = null, + string? name, int pageNumber = 1, int pageSize = 10) { diff --git a/WebApi/Endpoints/TrackEndpoints.cs b/WebApi/Endpoints/TrackEndpoints.cs index 4ac35e1..deadd8b 100644 --- a/WebApi/Endpoints/TrackEndpoints.cs +++ b/WebApi/Endpoints/TrackEndpoints.cs @@ -66,7 +66,7 @@ public static class TrackEndpoints IMediator mediator, Guid userId, CancellationToken cancellationToken, - string? name = null, + string? name, int pageNumber = 1, int pageSize = 10) { diff --git a/WebApi/Endpoints/UserEndpoints.cs b/WebApi/Endpoints/UserEndpoints.cs index daec332..2858702 100644 --- a/WebApi/Endpoints/UserEndpoints.cs +++ b/WebApi/Endpoints/UserEndpoints.cs @@ -37,9 +37,9 @@ public static class UserEndpoints private static async Task GetUsers( IMediator mediator, CancellationToken cancellationToken, + string? usernameSearch, int pageNumber = 1, - int pageSize = 10, - string? usernameSearch = null) + int pageSize = 10) { var result = await mediator.Send(new GetUsersQuery(pageNumber, pageSize, usernameSearch), cancellationToken); return result.ToHttpResult();