- 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
66 lines
1.1 KiB
Plaintext
66 lines
1.1 KiB
Plaintext
meta {
|
|
name: List Queue Items (With Pagination)
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
docs {
|
|
List items in the sync queue with pagination.
|
|
|
|
**Endpoint**: GET /queue/items
|
|
**Auth**: Required (Bearer token)
|
|
|
|
## Query Parameters
|
|
|
|
| Parameter | Type | Required | Description |
|
|
|-----------|------|-----------|-------------|
|
|
| limit | int | No | Items per page |
|
|
| offset | int | No | Pagination offset |
|
|
|
|
## Response Fields
|
|
|
|
| Field | Type | Description |
|
|
|-------|------|-------------|
|
|
| items | array | List of queue items |
|
|
| total | int | Total number of items |
|
|
| page | int | Current page number |
|
|
| per_page | int | Items per page |
|
|
|
|
## Example Request
|
|
|
|
```
|
|
GET /queue/items?limit=50&offset=0
|
|
```
|
|
|
|
## Error Responses
|
|
|
|
| Code | Description |
|
|
|------|-------------|
|
|
| 401 | Unauthorized |
|
|
| 500 | Internal server error |
|
|
|
|
## Notes
|
|
|
|
- Supports pagination for large queue lists
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/queue/items?limit=50&offset=0
|
|
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
|
|
}
|