diff --git a/docs/openapi.json b/docs/openapi.json index 8e3160550..26bad5b75 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -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": { diff --git a/docs/root.yaml b/docs/root.yaml index f0ffead10..4bc9c11d8 100644 --- a/docs/root.yaml +++ b/docs/root.yaml @@ -25,6 +25,8 @@ paths: $ref: './controllers/LibraryController.yaml#/paths/~1api~1libraries' /api/libraries/{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: - name: Authors description: Author endpoints