Files
bookhoard/bruno/devices/Clear Kobo Shelf.bru
T
john-okeefe 3117ce54ec refactor(bruno): migrate API tests to Bruno DSL format
- Convert all existing .bru files from JSON to Bruno DSL format
- Remove obsolete files (conflicts/api.bru, kobo/Kobo Initialization.bru)
- Update auth configuration to use 'inherit' instead of explicit bearer tokens
- Add comprehensive documentation to all test files
- Improve test scripts with proper assertions and error handling
2026-02-08 20:49:06 -05:00

51 lines
1.1 KiB
Plaintext

meta {
name: Clear Kobo Shelf
type: http
seq: 1
}
delete {
url: {{baseURL}}/api/devices/{{deviceID}}/shelves/clear?shelf={{shelfName}}
body: none
auth: inherit
}
headers {
Authorization: Bearer {{userToken}}
}
settings {
encodeUrl: true
timeout: 0
}
docs {
## Clear Kobo Shelf
Clear all books from a Kobo device shelf, or all shelves if no shelf name is specified.
**Method:** DELETE
**Endpoint:** /api/devices/{deviceID}//shelves/clear?shelf={shelfName}
**Authentication:** Bearer token
**Path Parameters:**
- `deviceID` (string): Device UUID
**Query Parameters:**
- `shelf` (string, optional): Shelf name to clear. If omitted, clears all shelves.
**Response:**
- `message` (string): Success message
- `cleared_count` (number): Number of books removed from shelf
**Status Codes:**
- 200: Success - shelf cleared
- 401: Unauthorized
- 404: Device not found
- 500: Internal server error
**Note:** Removes all books from the specified shelf. If no shelf name is provided, clears all shelves for the device. This operation cannot be undone.
}