41 lines
623 B
Plaintext
41 lines
623 B
Plaintext
meta {
|
|
name: Delete Ebook
|
|
type: http
|
|
seq: 5
|
|
}
|
|
|
|
delete {
|
|
url: http://localhost:8765/api/ebooks/{{ebookid}}
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
script:post-response {
|
|
function onResponse(res) {
|
|
let token = bru.setEnvVar("ebookid", "", { persist: true });
|
|
}
|
|
onResponse(res);
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Delete Ebook
|
|
|
|
Removes an ebook from the library.
|
|
|
|
**Authentication:** Required (Bearer token)
|
|
|
|
**Path Parameters:**
|
|
- `id` (string): Ebook UUID
|
|
|
|
**Response:** 204 No Content
|
|
|
|
**Error Responses:**
|
|
- 401: Invalid authentication
|
|
- 404: Ebook not found
|
|
}
|