Update configuration key naming convention to use snake_case consistently. Applies changes recursively across all subdirectories.
94 lines
2.4 KiB
Plaintext
94 lines
2.4 KiB
Plaintext
meta {
|
|
name: Get Conflict Details
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/api/conflicts/{{conflict_id}}
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
headers {
|
|
Authorization: Bearer {{token}}
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Get Conflict Details
|
|
|
|
Retrieves detailed information about a specific conflict, including side-by-side comparison of conflicting data from all sources.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /api/conflicts/{conflict_id}
|
|
|
|
**Authentication:** Bearer token
|
|
|
|
**Path Parameters:**
|
|
- `conflict_id` (string): Conflict UUID
|
|
|
|
**Response:**
|
|
- `id` (string): Conflict UUID
|
|
- `media_item_id` (string): Associated book UUID
|
|
- `media_item_title` (string): Book title
|
|
- `conflict_type` (string): Type of conflict (progress, note, highlight)
|
|
- `conflict_data` (object): Side-by-side comparison from each source
|
|
- Each source includes:
|
|
- `source` (string): Device/source identifier (koreader, kobo, web, etc.)
|
|
- `timestamp` (string): When this data was recorded
|
|
- `data` (object): The conflicting data
|
|
- `percentage` (number): Reading progress
|
|
- `epubcfi` (string): EPUB location
|
|
- `chapter` (number): Chapter number
|
|
- `resolution_status` (string): Current status (unresolved, user_resolved, auto_resolved)
|
|
- `resolution_data` (object, optional): If resolved, includes resolution details
|
|
- `resolved_by` (string, optional): User ID who resolved it
|
|
- `resolved_at` (string, optional): When it was resolved
|
|
- `created_at` (string): When conflict was detected
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 401: Unauthorized
|
|
- 404: Conflict not found
|
|
- 500: Internal server error
|
|
|
|
**Example Response:**
|
|
```json
|
|
{
|
|
"id": "conflict-uuid",
|
|
"media_item_id": "book-uuid",
|
|
"media_item_title": "Foundation",
|
|
"conflict_type": "progress",
|
|
"conflict_data": {
|
|
"koreader": {
|
|
"source": "koreader",
|
|
"timestamp": "2026-01-30T20:10:00Z",
|
|
"data": {
|
|
"percentage": 0.45,
|
|
"epubcfi": "epubcfi(/6/4/2:15)",
|
|
"chapter": 3
|
|
}
|
|
},
|
|
"kobo": {
|
|
"source": "kobo",
|
|
"timestamp": "2026-01-30T20:05:00Z",
|
|
"data": {
|
|
"percentage": 0.42,
|
|
"location": "unknown"
|
|
}
|
|
}
|
|
},
|
|
"resolution_status": "unresolved",
|
|
"created_at": "2026-01-30T20:10:00Z"
|
|
}
|
|
```
|
|
|
|
**Note:** Use this to get full details before resolving, showing exactly what data differs between sources.
|
|
}
|