refactor: standardize Bruno API requests with bruToJsonV2 format
- 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
This commit is contained in:
+4
-18
@@ -1,21 +1,7 @@
|
||||
meta {
|
||||
name: Get Dashboard Page
|
||||
type: http,
|
||||
seq: 1
|
||||
auth {
|
||||
mode: bearer
|
||||
}
|
||||
|
||||
get {
|
||||
url: "/dashboard"
|
||||
headers: {
|
||||
Authorization: "Bearer {{ _.token }}"
|
||||
}
|
||||
auth:bearer {
|
||||
token: {{token}}
|
||||
}
|
||||
|
||||
tests: {
|
||||
test_dashboard_success: {
|
||||
status: 200,
|
||||
headers: {
|
||||
"content-type": "text/html; charset=UTF-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user