test: add Bruno API test collections for Kobo and media endpoints

This commit is contained in:
2026-01-31 00:29:40 -05:00
parent 42c3168fcf
commit 45ba922c68
6 changed files with 133 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
meta {
name: Add Books to Kobo Shelf
type: http
seq: 1
}
POST {{baseURL}}/api/devices/{{deviceID}}/shelves
Authorization: Bearer {{userToken}}
Content-Type: application/json
{
"media_item_ids": [
"{{bookUUID1}}",
"{{bookUUID2}}"
],
"shelf_name": "Reading List",
"shelf_position": 0
}
{
"meta": {
"name": "Add Books to Kobo Shelf",
"description": "Add one or more books to a Kobo device shelf",
"documentation": "Manages which books should be synced to a specific Kobo device. Supports multiple shelves for organization."
}
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: Clear Kobo Shelf
type: http
seq: 1
}
DELETE {{baseURL}}/api/devices/{{deviceID}}/shelves/clear?shelf={{shelfName}}
Authorization: Bearer {{userToken}}
{
"meta": {
"name": "Clear Kobo Shelf",
"description": "Clear all books from a Kobo device shelf (or all shelves if no shelf name specified)",
"documentation": "Removes all books from the specified shelf. If no shelf name is provided, clears all shelves for the device."
}
}
+16
View File
@@ -0,0 +1,16 @@
meta {
name: Get Kobo Shelf
type: http
seq: 1
}
GET {{baseURL}}/api/devices/{{deviceID}}/shelves?shelf={{shelfName}}
Authorization: Bearer {{userToken}}
{
"meta": {
"name": "Get Kobo Shelf Books",
"description": "Get all books on a Kobo device shelf, optionally filter by shelf name",
"documentation": "Returns a list of books with their shelf positions and Kobo-specific metadata (entitlement ID, revision number)."
}
}
@@ -0,0 +1,16 @@
meta {
name: Remove Book from Kobo Shelf
type: http
seq: 1
}
DELETE {{baseURL}}/api/devices/{{deviceID}}/shelves?media_item_id={{bookUUID}}
Authorization: Bearer {{userToken}}
{
"meta": {
"name": "Remove Book from Kobo Shelf",
"description": "Remove a specific book from a Kobo device shelf",
"documentation": "Removes the book from the device's shelf, preventing it from syncing to that device."
}
}