diff --git a/API/API.csproj b/API/API.csproj index 57097c64d..5046bff05 100644 --- a/API/API.csproj +++ b/API/API.csproj @@ -12,10 +12,10 @@ latestmajor - - - - + + + + false diff --git a/API/Controllers/CBLController.cs b/API/Controllers/CBLController.cs index c49f915da..b4e674a1d 100644 --- a/API/Controllers/CBLController.cs +++ b/API/Controllers/CBLController.cs @@ -7,6 +7,7 @@ using API.Services; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using Swashbuckle.AspNetCore.Annotations; namespace API.Controllers; @@ -31,16 +32,17 @@ public CblController(IReadingListService readingListService, IDirectoryService d /// If this returns errors, the cbl will always be rejected by Kavita. /// /// FormBody with parameter name of cbl - /// Use comic vine matching or not. Defaults to false + /// Use comic vine matching or not. Defaults to false /// [HttpPost("validate")] - public async Task> ValidateCbl(IFormFile cbl, [FromQuery] bool comicVineMatching = false) + [SwaggerIgnore] + public async Task> ValidateCbl(IFormFile cbl, [FromQuery] bool useComicVineMatching = false) { var userId = User.GetUserId(); try { var cblReadingList = await SaveAndLoadCblFile(cbl); - var importSummary = await _readingListService.ValidateCblFile(userId, cblReadingList, comicVineMatching); + var importSummary = await _readingListService.ValidateCblFile(userId, cblReadingList, useComicVineMatching); importSummary.FileName = cbl.FileName; return Ok(importSummary); } @@ -82,16 +84,17 @@ public async Task> ValidateCbl(IFormFile cbl, /// /// FormBody with parameter name of cbl /// If true, will only emulate the import but not perform. This should be done to preview what will happen - /// Use comic vine matching or not. Defaults to false + /// Use comic vine matching or not. Defaults to false /// [HttpPost("import")] - public async Task> ImportCbl(IFormFile cbl, [FromQuery] bool dryRun = false, [FromQuery] bool comicVineMatching = false) + [SwaggerIgnore] + public async Task> ImportCbl(IFormFile cbl, [FromQuery] bool dryRun = false, [FromQuery] bool useComicVineMatching = false) { try { var userId = User.GetUserId(); var cblReadingList = await SaveAndLoadCblFile(cbl); - var importSummary = await _readingListService.CreateReadingListFromCbl(userId, cblReadingList, dryRun, comicVineMatching); + var importSummary = await _readingListService.CreateReadingListFromCbl(userId, cblReadingList, dryRun, useComicVineMatching); importSummary.FileName = cbl.FileName; return Ok(importSummary);