- 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
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
meta {
|
|
name: Get Unlinked Book Suggestions
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{baseUrl}}/sync/unlinked-books/{{unlinkedBookId}}/suggestions
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
headers {
|
|
Authorization: Bearer {{authToken}}
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Get Unlinked Book Suggestions
|
|
|
|
Retrieves suggested media items from the library that match an unlinked book, enabling manual linking.
|
|
|
|
**Method:** GET
|
|
|
|
**Endpoint:** /sync/unlinked-books/{unlinkedBookId}/suggestions
|
|
|
|
**Authentication:** Bearer token
|
|
|
|
**Path Parameters:**
|
|
- `unlinkedBookId` (string): Unlinked book UUID
|
|
|
|
**Response:**
|
|
- Array of suggested media items with:
|
|
- `id` (string): Media item UUID
|
|
- `title` (string): Media item title
|
|
- `author` (string): Media item author
|
|
- `confidence_score` (number): Match confidence (0-1)
|
|
- `match_reasons` (array): Reasons for the suggestion
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 401: Unauthorized
|
|
- 404: Unlinked book not found
|
|
|
|
**Note:** Suggestions are generated based on title similarity, author matching, and other metadata comparisons.
|
|
}
|