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
This commit is contained in:
@@ -1,14 +1,55 @@
|
||||
meta {
|
||||
name: "Get Universal Progress"
|
||||
type: "http"
|
||||
name: Get Universal Progress
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: "{{baseUrl}}/api/progress/{{mediaItemId}}"
|
||||
body: null
|
||||
headers: {
|
||||
Authorization: "Bearer {{jwt}}"
|
||||
Content-Type: "application/json"
|
||||
}
|
||||
url: {{baseUrl}}/api/progress/{{mediaItemId}}
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Bearer {{jwt}}
|
||||
Content-Type: application/json
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
docs {
|
||||
## Get Universal Progress
|
||||
|
||||
Retrieves universal reading progress for a specific media item across all devices.
|
||||
|
||||
**Method:** GET
|
||||
|
||||
**Endpoint:** /api/progress/{mediaItemId}
|
||||
|
||||
**Authentication:** Bearer token
|
||||
|
||||
**Path Parameters:**
|
||||
- `mediaItemId` (string): Media item UUID
|
||||
|
||||
**Response:**
|
||||
- `media_item_id` (string): Media item UUID
|
||||
- `progress` (object): Universal progress data
|
||||
- `percentage` (number): Overall progress percentage
|
||||
- `epubcfi` (string): EPUB location
|
||||
- `page` (number): Current page
|
||||
- `chapter` (number): Current chapter
|
||||
- `devices` (array): Per-device progress data
|
||||
- `device_id` (string): Device UUID
|
||||
- `device_name` (string): Device name
|
||||
- `progress` (object): Device-specific progress
|
||||
- `last_updated` (string): Last update timestamp
|
||||
|
||||
**Status Codes:**
|
||||
- 200: Success
|
||||
- 401: Unauthorized
|
||||
- 404: Media item not found
|
||||
- 500: Internal server error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user