Updates the route paths documented on the API endpoints

This commit is contained in:
BinaryAlley committed 2026-09-26 13:07:36 +03:00
1 parent c41bd24760
commit 3e0c3b624f
15 files changed
+17 -17

No files matched your search

@@ -14,7 +14,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Admin.Authorization.Roles.DeleteRole;
/// <summary>
/// API endpoint for the <c>/auth/roles</c> route.
/// API endpoint for the <c>/auth/roles/{roleId}</c> route.
/// </summary>
public class DeleteRoleEndpoint : BaseEndpoint<DeleteRoleRequest, IResult>
{
@@ -15,7 +15,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.Management.AddLibrary;
/// <summary>
/// API endpoint for the <c>/library</c> route.
/// API endpoint for the <c>/libraries</c> route.
/// </summary>
public class AddLibraryEndpoint : BaseEndpoint<AddLibraryRequest, IResult>
{
@@ -14,7 +14,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.Management.DeleteLibrary;
/// <summary>
/// API endpoint for the <c>//libraries/{id}</c> route.
/// API endpoint for the <c>/libraries/{id}</c> route.
/// </summary>
public class DeleteLibraryEndpoint : BaseEndpoint<DeleteLibraryRequest, IResult>
{
@@ -15,7 +15,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.AddBook;
/// <summary>
/// API endpoint for the <c>/{libraryId}/books</c> route.
/// API endpoint for the <c>/libraries/{libraryId}/books</c> route.
/// </summary>
public class AddBookEndpoint : BaseEndpoint<AddBookRequest, IResult>
{
@@ -14,7 +14,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.GetBook;
/// <summary>
/// API endpoint for the <c>/{libraryId}/books/{bookId}</c> route.
/// API endpoint for the <c>/libraries/{libraryId}/books/{bookId}</c> route.
/// </summary>
public class GetBookEndpoint : BaseEndpoint<EmptyRequest, IResult>
{
@@ -18,7 +18,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.GetBooks;
/// <summary>
/// API endpoint for the <c>/{libraryId}/books</c> route.
/// API endpoint for the <c>/libraries/{libraryId}/books</c> route.
/// </summary>
public class GetBooksEndpoint : BaseEndpoint<GetBooksRequest, IResult>
{
@@ -17,7 +17,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.GetBooksLite;
/// <summary>
/// API endpoint for the <c>/{libraryId}/books/lite</c> route.
/// API endpoint for the <c>/libraries/{libraryId}/books/lite</c> route.
/// </summary>
public class GetBooksLiteEndpoint : BaseEndpoint<GetBooksLiteRequest, IResult>
{
@@ -13,7 +13,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingAvailability;
/// <summary>
/// API endpoint for the <c>/{libraryId}/books/{bookId}/reading/availability</c> route.
/// API endpoint for the <c>/libraries/{libraryId}/books/{bookId}/reading/availability</c> route.
/// </summary>
public class GetReadingAvailabilityEndpoint : BaseEndpoint<FastEndpoints.EmptyRequest, IResult>
{
@@ -13,7 +13,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingManifest;
/// <summary>
/// API endpoint for the <c>/{libraryId}/books/{bookId}/reading/manifest</c> route.
/// API endpoint for the <c>/libraries/{libraryId}/books/{bookId}/reading/manifest</c> route.
/// </summary>
public class GetReadingManifestEndpoint : BaseEndpoint<FastEndpoints.EmptyRequest, IResult>
{
@@ -14,7 +14,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingResource;
/// <summary>
/// API endpoint for the <c>/{libraryId}/books/{bookId}/reading/resources/{resourceKey}</c> route.
/// API endpoint for the <c>/libraries/{libraryId}/books/{bookId}/reading/resources/{resourceKey}</c> route.
/// </summary>
public class GetReadingResourceEndpoint : BaseEndpoint<FastEndpoints.EmptyRequest, IResult>
{
@@ -13,7 +13,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.Reading.GetReadingSection;
/// <summary>
/// API endpoint for the <c>/{libraryId}/books/{bookId}/reading/sections/{locationRef}</c> route.
/// API endpoint for the <c>/libraries/{libraryId}/books/{bookId}/reading/sections/{locationRef}</c> route.
/// </summary>
public class GetReadingSectionEndpoint : BaseEndpoint<FastEndpoints.EmptyRequest, IResult>
{
@@ -15,7 +15,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.UpdateBook;
/// <summary>
/// API endpoint for the <c>/{libraryId}/books/{bookId}</c> route.
/// API endpoint for the <c>/libraries/{libraryId}/books/{bookId}</c> route.
/// </summary>
public class UpdateBookEndpoint : BaseEndpoint<UpdateBookRequest, IResult>
{
@@ -15,7 +15,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Library.WrittenContentLibrary.BookLibrary.Books.UpdateBookCover;
/// <summary>
/// API endpoint for the <c>/books/{bookId}/cover</c> route.
/// API endpoint for the <c>/libraries/{libraryId}/books/{bookId}/cover</c> route.
/// </summary>
public class UpdateBookCoverEndpoint : BaseEndpoint<FastEndpoints.EmptyRequest, IResult>
{
@@ -10,7 +10,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Maintenance;
/// <summary>
/// API endpoint for the <c>/directories/get-directories</c> route.
/// API endpoint for the <c>/check-health</c> route.
/// </summary>
public class CheckHealthEndpoint : BaseEndpoint<EmptyRequest, IResult>
{
@@ -32,7 +32,7 @@ public class CheckHealthEndpoint : BaseEndpoint<EmptyRequest, IResult>
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
public override async Task<IResult> ExecuteAsync(EmptyRequest _, CancellationToken cancellationToken)
{
// TODO: to be implemented
// TODO: to be implemented.
return await Task.FromResult(TypedResults.Ok());
}
}
@@ -16,7 +16,7 @@ using System.Threading.Tasks;
namespace Lumina.Presentation.Api.Core.Endpoints.Themes.Queries.GetThemeAsset;
/// <summary>
/// API endpoint for the <c>/themes/{themeId}/assets/{assetPath}</c> route.
/// API endpoint for the <c>/themes/{themeId}/assets/{*assetPath}</c> route.
/// </summary>
public class GetThemeAssetEndpoint : BaseEndpoint<GetThemeAssetRequest, IResult>
{
@@ -39,7 +39,7 @@ public class GetThemeAssetEndpoint : BaseEndpoint<GetThemeAssetRequest, IResult>
Verbs(Http.GET);
Routes(ApiRoutes.Themes.GET_THEME_ASSET);
Version(1);
// theme content is public, since the web renders themed pages for anonymous visitors too (i.e.: login page); only install and manage operations are admin-gated
// Theme content is public, since the web renders themed pages for anonymous visitors too (i.e.: login page); only install and manage operations are admin-gated.
AllowAnonymous();
DontCatchExceptions();
}