- 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
44 lines
706 B
Plaintext
44 lines
706 B
Plaintext
meta {
|
|
name: Clear Device Queue
|
|
type: http
|
|
seq: 6
|
|
}
|
|
|
|
delete {
|
|
url: {{base_url}}/api/queue/devices/{{device_id}}/clear
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
docs {
|
|
## Clear Device Queue
|
|
|
|
Clears all queue items for a specific device.
|
|
|
|
**Method:** DELETE
|
|
|
|
**Endpoint:** /api/queue/devices/:device_id/clear
|
|
|
|
**Authentication:** Bearer token
|
|
|
|
**Path Parameters:**
|
|
- `device_id` (string): Device UUID
|
|
|
|
**Response:**
|
|
- Success message with count of cleared items
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 401: Unauthorized
|
|
- 404: Device not found
|
|
|
|
**Example Response:**
|
|
```json
|
|
{
|
|
"message": "Queue cleared",
|
|
"device_id": "uuid",
|
|
"cleared_count": 10
|
|
}
|
|
```
|
|
}
|