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,32 +7,28 @@ meta {
|
||||
get {
|
||||
url: {{base_url}}/api/queue/items
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
headers: {
|
||||
Authorization: Bearer {{token}}
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
docs {
|
||||
## List All Queue Items (Admin)
|
||||
|
||||
|
||||
Retrieves all queue items across all devices (admin only).
|
||||
|
||||
|
||||
**Method:** GET
|
||||
|
||||
|
||||
**Endpoint:** /api/queue/items
|
||||
|
||||
|
||||
**Authentication:** Bearer token (admin role required)
|
||||
|
||||
|
||||
**Response:**
|
||||
- Array of queue items with device and status information
|
||||
|
||||
|
||||
**Status Codes:**
|
||||
- 200: Success
|
||||
- 401: Unauthorized
|
||||
- 403: Forbidden - admin role required
|
||||
|
||||
|
||||
**Example Response:**
|
||||
```json
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user