Commit Graph

3141 Commits

Author SHA1 Message Date
Udhay-Adithya
71c6818093 fix: move _selectedTabIndex declaration to class level 2025-05-01 17:50:56 +05:30
Udhay-Adithya
6344e8df21 feat: add indicator for request scripts
Shows an indicator on the 'Scripts' tab when pre-request or post-request scripts exist for the selected request.
Updates the selected tab text color in the scripts pane for better visibility.
2025-05-01 17:11:10 +05:30
Udhay-Adithya
36061f660a feat add pre-request script execution
Initializes JavaScript runtime during application startup.
Executes user-defined pre-request scripts before sending API requests, allowing modification of request details like URL, headers, and body.
Updates script execution environment for better scoping and uses synchronous evaluation.
2025-05-01 16:48:50 +05:30
Udhay Adithya
e936f382e0 Merge branch 'foss42:main' into add-feature-scripts 2025-05-01 16:47:38 +05:30
Ankit Mahato
a6e95e54a9 Merge pull request #831 from riojosdev/http-options-trace
added HTTP method `OPTIONS` (#822)
2025-04-27 05:19:14 +05:30
Ankit Mahato
169d97b166 Update history_models_test.dart 2025-04-27 05:13:48 +05:30
Ankit Mahato
f437b77973 Update history_models.dart 2025-04-27 05:13:42 +05:30
Ankit Mahato
897436bc70 Update http_service.dart 2025-04-27 05:08:39 +05:30
Ankit Mahato
7728d02b30 Update colors.dart 2025-04-27 05:06:31 +05:30
Udhay-Adithya
56137769f8 feat: adds pre/post-request script editing
Updates request model state management to include pre-request and post-request script fields.
Connects the script editor UI to the state notifier, allowing script changes to be persisted.
2025-04-26 00:11:08 +05:30
Udhay Adithya
d9906cc88b Merge branch 'foss42:main' into add-feature-scripts 2025-04-25 23:29:23 +05:30
Udhay-Adithya
fadf49372f feat: add support for pre-request scripts
Introduces `preRequestScript` and `postRequestScript` fields to the request model to store user-defined scripts.

Implements a service using `flutter_js` to execute JavaScript pre-request scripts before a request is sent.
The script can access and modify request data (like headers, body, URL) and environment variables.

Adds bridging to forward JavaScript `console.log`, `console.warn`, and `console.error` calls to the Dart console for easier debugging
2025-04-25 23:26:31 +05:30
Udhay-Adithya
839d8b5c00 feat: add JavaScript scripting foundation
Introduces a JavaScript setup script that defines the `ad` helper object.
This `ad` object exposes APIs for manipulating request data, accessing response details, and managing environment variables within scripts.

Adds an `evaluate` function to execute JS code using the `flutter_js` runtime and log results or errors.
This establishes the core infrastructure for pre-request and post-response scripting.
2025-04-25 22:34:02 +05:30
VENNAPUSA SRINATH REDDY
9c1fad21c9 Merge branch 'foss42:main' into Dashbot_v2 2025-04-25 22:06:50 +05:30
Rio Jos
8177cbeeab tests for http options 2025-04-24 15:43:22 +05:30
Rio Jos
a19c9ba093 http options method on history provider 2025-04-24 15:43:22 +05:30
Rio Jos
aa8e5c3d03 http method options 2025-04-24 15:43:22 +05:30
Ankit Mahato
b65d23337b Update README.md 2025-04-23 04:27:33 +05:30
Ankit Mahato
99151e6673 cleanup 2025-04-23 04:25:46 +05:30
Ankit Mahato
a8b1e6afba Merge pull request #813 from badnikhil/add-feature-460
Add CodeGen for Swift (Alamofire)
2025-04-23 04:20:44 +05:30
Ankit Mahato
d55c414438 Update consts.dart 2025-04-23 04:16:14 +05:30
Ankit Mahato
f25555861e Update alamofire.dart 2025-04-23 04:14:55 +05:30
Ankit Mahato
ec2c2a2407 Update codegen.dart 2025-04-23 04:14:20 +05:30
Udhay-Adithya
f97b39a103 feat: add flutter_js dependency and implement JS runtime service 2025-04-22 14:39:06 +05:30
Udhay-Adithya
346e4c3ef0 feat: refactor code highlighting and add scripts editor pane
- replace `flutter_highlighter` and `highlighter` with `flutter_highlight` and `highlight`.
- add `flutter_code_editor` dependency.
- introduce a new scripts editor pane in the REST request view.
2025-04-22 14:34:43 +05:30
Udhay-Adithya
ef3867ef43 feat: add scripts tab to request pane and update tab structure 2025-04-21 23:31:55 +05:30
Ankit Mahato
0606b38b7a Update ROADMAP.md 2025-04-20 15:30:44 +05:30
Nikhil
307364b917 Update instructions_to_run_generated_code.md 2025-04-20 04:28:24 +05:30
Nikhil
ab671d3786 Update instructions_to_run_generated_code.md 2025-04-20 04:22:47 +05:30
Nikhil
030ad8c401 all tests updated 2025-04-20 03:56:40 +05:30
Ankit Mahato
0f7783bf19 Merge pull request #818 from WannaCry016/patch-5
Fix Issue #630 Unable to override Content-Type header charset
2025-04-20 03:11:08 +05:30
Ankit Mahato
287bc45aa5 Fix http.Request preparation 2025-04-20 03:09:49 +05:30
Ankit Mahato
834aef6f3d Adding more tests 2025-04-20 03:06:48 +05:30
Ankit Mahato
5da0df54ab Update map_extensions.dart 2025-04-20 02:32:48 +05:30
Nikhil
adf415f7a4 Merge branch 'foss42:main' into add-feature-460 2025-04-20 01:41:19 +05:30
Ankit Mahato
29cb1e2744 Update response_model_test.dart 2025-04-20 00:51:53 +05:30
Ankit Mahato
b3cbb8686b Merge branch 'main' into patch-5 2025-04-20 00:31:56 +05:30
Ankit Mahato
5337d5aa4f Update http_service.dart 2025-04-20 00:25:09 +05:30
Ankit Mahato
fa5e9b3bfe Adding test case for #630 2025-04-19 21:21:51 +05:30
Ayushman Pal
fe5b927b01 Update http_service.dart 2025-04-17 13:58:31 +05:30
Nikhil
15f40a9b15 Merge branch 'foss42:main' into add-feature-460 2025-04-15 06:30:19 +05:30
Ashita Prasad
ac3f2649f4 Merge pull request #814 from himanshusingh0905/idea_himanshu_api_testing_agent
Possible architectures of AI Agent for API Testing and Tool Definition Generation
2025-04-15 02:48:25 +05:30
Himanshu
d5fc3b5d53 fix architecture1 diagram 2025-04-14 23:55:58 +05:30
Himanshu
7ea551f889 api testing agent idea add 2025-04-14 23:22:11 +05:30
Nikhil
db3b343d82 Merge branch 'foss42:main' into add-feature-460 2025-04-14 09:20:51 +05:30
Nikhil
33cd24f2f3 tests 2025-04-14 09:20:37 +05:30
Nikhil
d08bf8f564 tests and changes 2025-04-14 03:59:43 +05:30
Nikhil
857b3660b4 adding tests 2025-04-13 19:21:18 +05:30
Ankit Mahato
086886c9ae Merge pull request #812 from D528lgym/main
Akim.yml
2025-04-13 00:59:31 +05:30
Ankit Mahato
4deeec3a2a Update pubspec.yaml 2025-04-13 00:58:48 +05:30