#409 api/pdf/q DELETE
This commit is contained in:
parent
70a1669558
commit
c176979ab9
@ -1517,6 +1517,27 @@ namespace RMuseum.Controllers
|
||||
return Ok(pdfBooksInfo.Result.Books);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// delete queued books
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
|
||||
[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<IActionResult> DeleteQueuedPDFBookAsync(Guid id)
|
||||
{
|
||||
RServiceResult<bool> res = await _pdfService.DeleteQueuedPDFBookAsync(id);
|
||||
if (!string.IsNullOrEmpty(res.ExceptionString))
|
||||
{
|
||||
return BadRequest(res.ExceptionString);
|
||||
}
|
||||
return Ok(res.Result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// start processing queue pdf books
|
||||
/// </summary>
|
||||
|
||||
@ -2821,6 +2821,13 @@
|
||||
<param name="paging"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Controllers.PDFLibraryController.DeleteQueuedPDFBookAsync(System.Guid)">
|
||||
<summary>
|
||||
delete queued books
|
||||
</summary>
|
||||
<param name="id"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Controllers.PDFLibraryController.StartProcessingQueuedPDFBooks">
|
||||
<summary>
|
||||
start processing queue pdf books
|
||||
|
||||
Loading…
Reference in New Issue
Block a user