- Convert all JSON tests to JavaScript functions for bruToJsonV2 compatibility
- Update authentication to use 'inherit' instead of manual headers
- Fix hardcoded URLs to use {{base_url}} variables
- Standardize variable syntax from {{ _.var }} to {{var}}
- Add comprehensive API documentation to all requests
- Update environment variables with missing required fields
- Apply consistent structure: meta, http method, headers, tests, vars, settings, docs
- Enhanced validation with proper error handling and field checks
34 lines
578 B
Plaintext
34 lines
578 B
Plaintext
meta {
|
|
name: List Ebooks
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{base_url}}/api/ebooks
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## List Ebooks
|
|
|
|
Retrieves a paginated list of ebooks.
|
|
|
|
**Authentication:** Required (Bearer token)
|
|
|
|
**Query Parameters:**
|
|
- `limit` (number, optional): Number of results (default: 20, max: 100)
|
|
- `offset` (number, optional): Pagination offset (default: 0)
|
|
|
|
**Response:** Array of ebook objects with id, title, author, etc.
|
|
|
|
**Error Responses:**
|
|
- 401: Invalid authentication
|
|
}
|