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:
@@ -0,0 +1,65 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user