diff --git a/openapi.yaml b/openapi.yaml index e098466..bc40557 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -70,6 +70,29 @@ paths: description: Book not found '500': description: Internal server error + delete: + summary: Delete a book + description: Deletes a book by its ID + operationId: deleteBook + parameters: + - name: id + in: path + required: true + description: ID of the book to delete + schema: + type: integer + format: int64 + responses: + '200': + description: Book deleted successfully + content: + application/json: + schema: + $ref: '#/components/schemas/Book' + '404': + description: Book not found + '500': + description: Internal server error components: schemas: @@ -116,4 +139,4 @@ components: author: type: string description: The author of the book - example: "F. Scott Fitzgerald" + example: "F. Scott Fitzgerald" \ No newline at end of file