Skip to content
This repository was archived by the owner on Feb 1, 2026. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,30 @@ paths:
'500':
description: Internal server error

delete:
summary: Delete a book by ID
description: Deletes a single book by its ID
operationId: deleteBookById
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:
BookInput:
Expand Down Expand Up @@ -116,4 +140,4 @@ components:
author:
type: string
description: The author of the book
example: "F. Scott Fitzgerald"
example: "F. Scott Fitzgerald"