- 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
72 lines
1.2 KiB
Plaintext
72 lines
1.2 KiB
Plaintext
meta {
|
|
name: Filter by Status - Pending
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
docs {
|
|
Filter queue items by status - show only pending items.
|
|
|
|
**Endpoint**: GET /queue/items?status=pending
|
|
**Auth**: Required (Bearer token)
|
|
|
|
## Query Parameters
|
|
|
|
| Parameter | Type | Required | Description |
|
|
|-----------|------|-----------|-------------|
|
|
| status | string | Yes | Status filter: pending, processing, completed, failed |
|
|
|
|
## Response Fields
|
|
|
|
| Field | Type | Description |
|
|
|-------|------|-------------|
|
|
| items | array | List of queue items with pending status |
|
|
| total | int | Total matching items |
|
|
|
|
## Example Request
|
|
|
|
```
|
|
GET /queue/items?status=pending
|
|
```
|
|
|
|
## Example Response
|
|
|
|
```json
|
|
{
|
|
"items": [...],
|
|
"total": 15
|
|
}
|
|
```
|
|
|
|
## Error Responses
|
|
|
|
| Code | Description |
|
|
|------|-------------|
|
|
| 401 | Unauthorized |
|
|
| 500 | Internal server error |
|
|
|
|
## Notes
|
|
|
|
- Only returns items with the specified status
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/queue/items?status=pending
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
token: {{jwt_token}}
|
|
}
|
|
|
|
tests {
|
|
test("status must be 200", function() {
|
|
expect(res.status).to.eql(200);
|
|
});
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|