diff --git a/RMuseum/Controllers/PDFLibraryController.cs b/RMuseum/Controllers/PDFLibraryController.cs
index 7b05fd7a..f535892c 100644
--- a/RMuseum/Controllers/PDFLibraryController.cs
+++ b/RMuseum/Controllers/PDFLibraryController.cs
@@ -1517,6 +1517,27 @@ namespace RMuseum.Controllers
return Ok(pdfBooksInfo.Result.Books);
}
+ ///
+ /// delete queued books
+ ///
+ ///
+ ///
+
+ [HttpDelete("q")]
+ [Authorize(Policy = RMuseumSecurableItem.PDFLibraryEntityShortName + ":" + SecurableItem.DeleteOperationShortName)]
+ [ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(bool))]
+ [ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))]
+ [ProducesResponseType((int)HttpStatusCode.Forbidden)]
+ public async Task DeleteQueuedPDFBookAsync(Guid id)
+ {
+ RServiceResult res = await _pdfService.DeleteQueuedPDFBookAsync(id);
+ if (!string.IsNullOrEmpty(res.ExceptionString))
+ {
+ return BadRequest(res.ExceptionString);
+ }
+ return Ok(res.Result);
+ }
+
///
/// start processing queue pdf books
///
diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml
index d8b08cad..165cbd4d 100644
--- a/RMuseum/RMuseum.xml
+++ b/RMuseum/RMuseum.xml
@@ -2821,6 +2821,13 @@
+
+
+ delete queued books
+
+
+
+
start processing queue pdf books