Documentation updates: - All docs/ files: Update project references - Bruno API collection: Update collection name and tests - Device setup guides: Update all examples - Implementation plan: Update database schema examples - README files: Update project references Part of project rename to Bookhoard.
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
{
|
|
"meta": {
|
|
"name": "Download Book KEPUB (On-the-fly Conversion)",
|
|
"type": "http",
|
|
"event": [
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"exec": [
|
|
"// Test format-specific hash header",
|
|
"const kepubHash = resp.headers.get('X-Bookhoard-KEPUB-SHA256');",
|
|
"if (kepubHash) {",
|
|
" tests['KEPUB hash present'] = true;",
|
|
" tests['Hash is 64 chars'] = kepubHash.length === 64;",
|
|
"} else {",
|
|
" tests['KEPUB hash present'] = false;",
|
|
"}",
|
|
"",
|
|
"// Verify Bookhoard UUID header",
|
|
"const bookhoardUUID = resp.headers.get('X-Bookhoard-UUID');",
|
|
"tests['Bookhoard UUID present'] = bookhoardUUID !== null;",
|
|
"",
|
|
"// Verify content type",
|
|
"const contentType = resp.headers.get('Content-Type');",
|
|
"tests['Content-Type is KEPUB'] = contentType && contentType.includes('kepub');"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"req": {
|
|
"url": "{{baseUrl}}/opds/devices/{{deviceId}}/download/{{mediaItemId}}?format=kepub",
|
|
"method": "GET"
|
|
}
|
|
}
|