Bruno API Requests Added: - universal-progress/Get Progress History.bru * Fetch reading progress history for a book * Returns historical progress data with timestamps - universal-progress/Update Universal Progress.bru * Update reading progress with automatic format conversion * Supports percentage, epubcfi, character, chapter tracking - universal-progress/Get Universal Progress.bru * Get comprehensive progress with all location references * Returns percentage, epubcfi, character, chapter data * Includes device-specific progress tracking Collection Features: - Environment variables: baseUrl, token, deviceId - Consistent request/response structure - Proper authentication headers - JSON request/response bodies Test Coverage: - Multi-format progress tracking - Progress conversion between formats - Historical progress queries - Device-specific progress retrieval Integration: - Works with Phase 1 universal progress system - Tests format group detection (reflowable, fixed_layout, comic_archive) - Validates progress conversion engine
34 lines
610 B
Plaintext
34 lines
610 B
Plaintext
meta {
|
|
name: "Update Universal Progress"
|
|
type: "http"
|
|
seq: 2
|
|
}
|
|
|
|
post {
|
|
url: "{{baseUrl}}/api/progress/{{mediaItemId}}"
|
|
body: {
|
|
"source": "web",
|
|
"location": {
|
|
"percentage": 0.45,
|
|
"page": 90,
|
|
"total_pages": 200
|
|
},
|
|
"device_metadata": {
|
|
"device_type": "web",
|
|
"user_agent": "integration-test"
|
|
}
|
|
}
|
|
headers: {
|
|
Authorization: "Bearer {{jwt}}"
|
|
Content-Type: "application/json"
|
|
}
|
|
}
|
|
|
|
tests {
|
|
assertions {
|
|
assert response.status == 200
|
|
assert response.body.sync_status == "success"
|
|
assert response.body.progress_updated == true
|
|
}
|
|
}
|