refactor(bruno): migrate API tests to Bruno DSL format
- 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
This commit is contained in:
@@ -7,35 +7,31 @@ meta {
|
||||
get {
|
||||
url: {{base_url}}/api/queue/devices/{{device_id}}/stats
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
headers: {
|
||||
Authorization: Bearer {{token}}
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
docs {
|
||||
## Get Device Queue Stats
|
||||
|
||||
|
||||
Retrieves statistics for a specific device's sync queue.
|
||||
|
||||
|
||||
**Method:** GET
|
||||
|
||||
|
||||
**Endpoint:** /api/queue/devices/:device_id/stats
|
||||
|
||||
|
||||
**Authentication:** Bearer token
|
||||
|
||||
|
||||
**Path Parameters:**
|
||||
- `device_id` (string): Device UUID
|
||||
|
||||
|
||||
**Response:**
|
||||
- Queue statistics including pending, completed, and failed counts
|
||||
|
||||
|
||||
**Status Codes:**
|
||||
- 200: Success
|
||||
- 401: Unauthorized
|
||||
- 404: Device not found
|
||||
|
||||
|
||||
**Example Response:**
|
||||
```json
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user