Update configuration key naming convention to use snake_case consistently. Applies changes recursively across all subdirectories.
51 lines
928 B
Plaintext
51 lines
928 B
Plaintext
meta {
|
|
name: Get Device
|
|
type: http
|
|
seq: 4
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/api/devices/{{deviceId}}
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
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
|
|
}
|