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
+37 -2
View File
@@ -7,9 +7,44 @@ meta {
get {
url: {{baseUrl}}/api/devices/{{deviceId}}
body: none
auth: bearer
auth: inherit
}
headers: {
headers {
Authorization: Bearer {{token}}
}
settings {
encodeUrl: true
timeout: 0
}
docs {
## Get Device
Retrieves detailed information about a specific device.
**Method:** GET
**Endpoint:** /api/devices/{deviceId}
**Authentication:** Bearer token
**Path Parameters:**
- `deviceId` (string): Device UUID
**Response:**
- `id` (string): Device UUID
- `name` (string): Device name
- `device_type` (string): Type (kobo, koreader, web)
- `last_sync` (string): Last sync timestamp
- `is_active` (boolean): Whether device is active
- `created_at` (string): Registration timestamp
- `sync_settings` (object): Device-specific sync settings
**Status Codes:**
- 200: Success
- 401: Unauthorized
- 404: Device not found
- 500: Internal server error
}