diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpointSummary.cs
index 77c554b1..9021510e 100644
--- a/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpointSummary.cs
+++ b/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Drives/GetDrives/GetDrivesEndpointSummary.cs
@@ -2,7 +2,6 @@
using FastEndpoints;
using Lumina.Contracts.Responses.FileSystemManagement.Common;
using Lumina.Domain.SharedKernel.Common.Enums.FileSystem;
-using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
#endregion
@@ -12,7 +11,7 @@ namespace Lumina.Presentation.Api.Core.Endpoints.FileSystemManagement.Drives.Get
/// Class used for providing a textual description for the API endpoint, for OpenAPI.
///
[ExcludeFromCodeCoverage]
-public class GetDrivesEndpointSummary : Summary
+public class GetDrivesEndpointSummary : Summary
{
///
/// Initializes a new instance of the class.
diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs
index 528c5c53..9ca34185 100644
--- a/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs
+++ b/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/FileSystem/GetType/GetTypeEndpointSummary.cs
@@ -11,7 +11,7 @@ namespace Lumina.Presentation.Api.Core.Endpoints.FileSystemManagement.FileSystem
/// Class used for providing a textual description for the API endpoint, for OpenAPI.
///
[ExcludeFromCodeCoverage]
-public class GetTypeEndpointSummary : Summary
+public class GetTypeEndpointSummary : Summary
{
///
/// Initializes a new instance of the class.
diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpointSummary.cs
index d2321cb0..9bad080f 100644
--- a/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpointSummary.cs
+++ b/src/Lumina.Presentation.Api/Core/Endpoints/FileSystemManagement/Path/GetPathSeparator/GetPathSeparatorEndpointSummary.cs
@@ -10,7 +10,7 @@ namespace Lumina.Presentation.Api.Core.Endpoints.FileSystemManagement.Path.GetPa
/// Class used for providing a textual description for the API endpoint, for OpenAPI.
///
[ExcludeFromCodeCoverage]
-public class GetPathSeparatorEndpointSummary : Summary
+public class GetPathSeparatorEndpointSummary : Summary
{
///
/// Initializes a new instance of the class.
diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpointSummary.cs
index ec9af2ea..b85f1e80 100644
--- a/src/Lumina.Presentation.Api/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpointSummary.cs
+++ b/src/Lumina.Presentation.Api/Core/Endpoints/Library/Management/ScanLibrary/ScanLibraryEndpointSummary.cs
@@ -1,5 +1,6 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
+using Lumina.Contracts.Requests.MediaLibrary.Management;
using Lumina.Contracts.Responses.MediaLibrary.Management;
using System;
using System.Collections.Generic;
@@ -12,7 +13,7 @@ namespace Lumina.Presentation.Api.Core.Endpoints.Library.Management.ScanLibrary;
/// Class used for providing a textual description for the API endpoint, for OpenAPI.
///
[ExcludeFromCodeCoverage]
-public class ScanLibraryEndpointSummary : Summary
+public class ScanLibraryEndpointSummary : Summary
{
///
/// Initializes a new instance of the class.
@@ -22,6 +23,12 @@ public class ScanLibraryEndpointSummary : Summary r.Id, "The unique identifier of the media library to be scanned. Required.");
+
Response(200, "The media library scan was successfully started.",
example: new MediaLibraryScanResponse(
ScanId: Guid.NewGuid(),
diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooks/GetBooksEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooks/GetBooksEndpointSummary.cs
index 5555d764..a128d00d 100644
--- a/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooks/GetBooksEndpointSummary.cs
+++ b/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooks/GetBooksEndpointSummary.cs
@@ -3,9 +3,11 @@ using FastEndpoints;
using Lumina.Contracts.DTO.Common;
using Lumina.Contracts.DTO.MediaContributors;
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
+using Lumina.Contracts.Requests.MediaLibrary.WrittenContentLibrary.BookLibrary.Books;
using Lumina.Contracts.Responses.Common;
using Lumina.Contracts.Responses.MediaLibrary.WrittenContentLibrary.BookLibrary.Books;
using Lumina.Domain.SharedKernel.Common.Enums.BookLibrary;
+using Lumina.Domain.SharedKernel.Common.Enums.Common;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
@@ -17,7 +19,7 @@ namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.B
/// Class used for providing a textual description for the API endpoint, for OpenAPI.
///
[ExcludeFromCodeCoverage]
-public class GetBooksEndpointSummary : Summary
+public class GetBooksEndpointSummary : Summary
{
///
/// Initializes a new instance of the class.
@@ -27,6 +29,21 @@ public class GetBooksEndpointSummary : Summary
Summary = "Retrieves the list of books.";
Description = "Returns the entire list of books.";
+ ExampleRequest = new GetBooksRequest(
+ LibraryId: Guid.NewGuid(),
+ CurrentPage: 1,
+ PerPage: 48,
+ SearchTerm: "fellowship",
+ SortBy: "title",
+ SortOrder: SortOrder.Ascending
+ );
+
+ RequestParam(r => r.LibraryId, "The Id of the media library whose books are retrieved. Required.");
+ RequestParam(r => r.CurrentPage, "The page of results to retrieve. Optional.");
+ RequestParam(r => r.PerPage, "The maximum number of books to retrieve per page. Optional.");
+ RequestParam(r => r.SearchTerm, "The search term used to filter results. Optional.");
+ RequestParam(r => r.SortBy, "The name of the field by which to sort the results. Optional.");
+ RequestParam(r => r.SortOrder, "The direction in which to sort the results. Optional.");
Response(200, "The paginated list of books is returned.",
example: new PaginatedResponse
diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooksLite/GetBooksLiteEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooksLite/GetBooksLiteEndpointSummary.cs
index b8dfb1fe..8a35a6c6 100644
--- a/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooksLite/GetBooksLiteEndpointSummary.cs
+++ b/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooksLite/GetBooksLiteEndpointSummary.cs
@@ -1,7 +1,9 @@
#region ========================================================================= USING =====================================================================================
using FastEndpoints;
+using Lumina.Contracts.Requests.MediaLibrary.WrittenContentLibrary.BookLibrary.Books;
using Lumina.Contracts.Responses.Common;
using Lumina.Contracts.Responses.MediaLibrary.WrittenContentLibrary.BookLibrary.Books;
+using Lumina.Domain.SharedKernel.Common.Enums.Common;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
@@ -13,7 +15,7 @@ namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.B
/// Class used for providing a textual description for the API endpoint, for OpenAPI.
///
[ExcludeFromCodeCoverage]
-public class GetBooksLiteEndpointSummary : Summary
+public class GetBooksLiteEndpointSummary : Summary
{
///
/// Initializes a new instance of the class.
@@ -23,6 +25,26 @@ public class GetBooksLiteEndpointSummary : Summary
Summary = "Retrieves the lightweight details of the list of books.";
Description = "Returns a paginated list of the lightweight details of the books of the media library, suitable for card-style navigation.";
+ ExampleRequest = new GetBooksLiteRequest(
+ LibraryId: Guid.NewGuid(),
+ CurrentPage: 1,
+ PerPage: 48,
+ SearchTerm: "fellowship",
+ FilterAlphaKey: "f",
+ IgnoreThePrefixForAlphaPicker: true,
+ SortBy: "title",
+ SortOrder: SortOrder.Ascending
+ );
+
+ RequestParam(r => r.LibraryId, "The Id of the media library whose books are retrieved. Required.");
+ RequestParam(r => r.CurrentPage, "The page of results to retrieve. Optional.");
+ RequestParam(r => r.PerPage, "The maximum number of books to retrieve per page. Optional.");
+ RequestParam(r => r.SearchTerm, "The search term used to filter results. Optional.");
+ RequestParam(r => r.FilterAlphaKey, "The alpha key used to filter the results by the first character of their title, for the alpha picker. Optional.");
+ RequestParam(r => r.IgnoreThePrefixForAlphaPicker, "Whether the leading \"The \" prefix of a title should be ignored when computing the alpha key, or not. Required.");
+ RequestParam(r => r.SortBy, "The name of the field by which to sort the results. Optional.");
+ RequestParam(r => r.SortOrder, "The direction in which to sort the results. Optional.");
+
Response(200, "The paginated list of lightweight book details is returned.",
example: new PaginatedResponse
{
diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Maintenance/ApplicationSetup/CheckInitializationEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Maintenance/ApplicationSetup/CheckInitializationEndpointSummary.cs
index db52a732..13007526 100644
--- a/src/Lumina.Presentation.Api/Core/Endpoints/Maintenance/ApplicationSetup/CheckInitializationEndpointSummary.cs
+++ b/src/Lumina.Presentation.Api/Core/Endpoints/Maintenance/ApplicationSetup/CheckInitializationEndpointSummary.cs
@@ -10,7 +10,7 @@ namespace Lumina.Presentation.Api.Core.Endpoints.Maintenance.ApplicationSetup;
/// Class used for providing a textual description for the API endpoint, for OpenAPI.
///
[ExcludeFromCodeCoverage]
-public class CheckInitializationEndpointSummary : Summary
+public class CheckInitializationEndpointSummary : Summary
{
///
/// Initializes a new instance of the class.