- Add device registration and management API tests - Add conflicts resolution API tests - Add queue management API tests - Add KOReader sync protocol tests - Add Kobo sync protocol tests
48 lines
769 B
Plaintext
48 lines
769 B
Plaintext
meta {
|
|
name: Clear Device Queue
|
|
type: http
|
|
seq: 6
|
|
}
|
|
|
|
delete {
|
|
url: {{base_url}}/api/queue/devices/{{device_id}}/clear
|
|
body: none
|
|
auth: bearer
|
|
}
|
|
|
|
headers: {
|
|
Authorization: Bearer {{token}}
|
|
}
|
|
|
|
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
|
|
}
|
|
```
|
|
}
|