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:
2026-02-08 20:49:06 -05:00
parent cb76b9ca05
commit 3117ce54ec
93 changed files with 3974 additions and 1576 deletions
@@ -1,16 +1,50 @@
{
"meta": {
"name": "Get Unlinked Book Suggestions",
"type": "http"
},
"req": {
"url": "{{baseUrl}}/sync/unlinked-books/{{unlinkedBookId}}/suggestions",
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{authToken}}"
}
]
}
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.
}