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:
2026-01-28 20:13:56 -05:00
parent 935b867219
commit 8db5939892
27 changed files with 1269 additions and 182 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ meta {
}
get {
url: http://localhost:8765/api/ebooks/{{ebookid}}/progress
url: {{base_url}}/api/ebooks/{{ebookid}}/progress
body: none
auth: inherit
}
+1 -1
View File
@@ -5,7 +5,7 @@ meta {
}
put {
url: http://localhost:8765/api/ebooks/{{ebookid}}/progress
url: {{base_url}}/api/ebooks/{{ebookid}}/progress
body: json
auth: inherit
}