Update configuration key naming convention to use snake_case consistently. Applies changes recursively across all subdirectories.
47 lines
830 B
Plaintext
47 lines
830 B
Plaintext
meta {
|
|
name: List Devices
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/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
|
|
}
|