refactor(bruno): reorganize file structure from bruno-yaml to flat bruno directory
- Move all files from bruno-yaml/* to bruno/* - Maintains existing directory structure within categories - Updates bruno/user/auth files with OAuth2 refresh token flow - Updates bruno/user/profile files for user profile management - Adds bruno/dashboard/ directory with dashboard API tests - Preserves all existing test scenarios and OpenCollection YAML format - No functional changes - file reorganization only
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
info:
|
||||
name: Disable Device Sync
|
||||
type: http
|
||||
seq: 8
|
||||
|
||||
http:
|
||||
method: PUT
|
||||
url: '{{base_url}}/api/devices/{{device_id}}'
|
||||
auth: inherit
|
||||
headers:
|
||||
- key: Content-Type
|
||||
value: application/json
|
||||
body:
|
||||
type: json
|
||||
json:
|
||||
device_name: My Kobo Clara
|
||||
sync_enabled: false
|
||||
auto_sync: false
|
||||
sync_frequency_minutes: 30
|
||||
|
||||
docs: |-
|
||||
## Disable Device Sync
|
||||
|
||||
Disables synchronization for a specific device.
|
||||
|
||||
**Method:** PUT
|
||||
|
||||
**Endpoint:** /api/devices/:device_id
|
||||
|
||||
**Authentication:** Required (Bearer token)
|
||||
|
||||
**Path Parameters:**
|
||||
- `device_id` (string): UUID of the device
|
||||
|
||||
**Request Body:**
|
||||
- `device_name` (string, optional): Device name
|
||||
- `sync_enabled` (boolean): Must be `false`
|
||||
- `auto_sync` (boolean): Should be `false`
|
||||
- `sync_frequency_minutes` (integer, optional): Any value (sync disabled)
|
||||
|
||||
**Response:**
|
||||
- `id` (string): Device UUID
|
||||
- `device_name` (string): Device name
|
||||
- `sync_enabled` (boolean): `false`
|
||||
- `auto_sync` (boolean): `false`
|
||||
- `message` (string): Confirmation message
|
||||
|
||||
**Status Codes:**
|
||||
- 200: Sync disabled successfully
|
||||
- 401: Unauthorized
|
||||
- 403: Forbidden
|
||||
- 404: Device not found
|
||||
|
||||
**Use Cases:**
|
||||
- Temporarily disable sync for troubleshooting
|
||||
- Stop sync for a lost or stolen device
|
||||
- Disable sync before selling or giving away device
|
||||
- Prevent data usage on limited connections
|
||||
Reference in New Issue
Block a user