Add: remove library items with issues

This commit is contained in:
Nicholas Wallace 2024-05-18 22:38:49 +00:00
parent df03343a95
commit 2ff0cb2c0a
2 changed files with 39 additions and 0 deletions

View file

@ -565,6 +565,43 @@
} }
} }
} }
},
"/api/libraries/{id}/issues": {
"parameters": [
{
"name": "id",
"in": "path",
"description": "The ID of the library.",
"required": true,
"schema": {
"$ref": "#/components/schemas/libraryId"
}
}
],
"delete": {
"operationId": "deleteLibraryIssues",
"summary": "Delete items with issues in a library.",
"description": "Delete all items with issues in a library by library ID on the server. This only removes the items from the ABS database and does not delete media files.",
"tags": [
"Libraries"
],
"responses": {
"200": {
"description": "deleteLibraryIssues OK",
"content": {
"application/json": {
"schema": {
"type": "string",
"example": "Issues deleted."
}
}
}
},
"404": {
"$ref": "#/components/responses/library404"
}
}
}
} }
}, },
"components": { "components": {

View file

@ -25,6 +25,8 @@ paths:
$ref: './controllers/LibraryController.yaml#/paths/~1api~1libraries' $ref: './controllers/LibraryController.yaml#/paths/~1api~1libraries'
/api/libraries/{id}: /api/libraries/{id}:
$ref: './controllers/LibraryController.yaml#/paths/~1api~1libraries~1{id}' $ref: './controllers/LibraryController.yaml#/paths/~1api~1libraries~1{id}'
/api/libraries/{id}/issues:
$ref: './controllers/LibraryController.yaml#/paths/~1api~1libraries~1{id}~1issues'
tags: tags:
- name: Authors - name: Authors
description: Author endpoints description: Author endpoints