Files
bookhoard/bruno/devices/List Devices.bru
T
john-okeefe 3117ce54ec 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
2026-02-08 20:49:06 -05:00

47 lines
829 B
Plaintext

meta {
name: List Devices
type: http
seq: 3
}
get {
url: {{baseUrl}}/api/devices
body: none
auth: inherit
}
headers {
Authorization: Bearer {{token}}
}
settings {
encodeUrl: true
timeout: 0
}
docs {
## List Devices
Lists all devices registered to the authenticated user's account.
**Method:** GET
**Endpoint:** /api/devices
**Authentication:** Bearer token
**Response:**
- `devices` (array): Array of device objects
- `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
**Status Codes:**
- 200: Success
- 401: Unauthorized
- 500: Internal server error
}