Commit Graph

168 Commits

Author SHA1 Message Date
Manas Hejmadi
d923996dc8 AIProviderSelector Impl & AI Models added to RequestModel 2025-08-06 08:39:35 +05:30
Manas Hejmadi
90b4b99135 Added LLMSelectorWidget & Integrated with APIDash Settings 2025-08-06 08:39:35 +05:30
Ankit Mahato
3a233e2aec Update collection_providers.dart 2025-08-06 02:44:53 +05:30
Ankit Mahato
625254b20f Refactor auth handling in HTTP request functions
Removed redundant AuthModel parameter from sendHttpRequest and streamHttpRequest functions, now using authModel from HttpRequestModel directly. Updated all usages, tests, and related logic to reflect this change. Improved streaming response handling in CollectionStateNotifier and HttpResponseModel.
2025-08-06 02:42:23 +05:30
Ankit Mahato
81e967b1b3 Update collection_providers.dart 2025-08-06 00:44:00 +05:30
Ankit Mahato
9772ff9e5e Rename variables for clarity in CollectionStateNotifier
Renamed respModel and historyM to httpResponseModel and historyModel for improved code readability and consistency within the CollectionStateNotifier class.
2025-08-05 13:09:47 +05:30
Ankit Mahato
254530d9ae Refactor null checks in CollectionStateNotifier
Improved readability by expanding null checks with braces in CollectionStateNotifier methods. Also added a non-null assertion for historyM when adding a history request.
2025-08-05 12:48:54 +05:30
Ankit Mahato
f4e0f82125 Merge branch 'main' into better_networking/sse 2025-08-05 06:18:21 +05:30
Udhay Adithya
65f375c69e Merge branch 'foss42:main' into basic-auth 2025-07-12 00:19:13 +05:30
Manas Hejmadi
c58f6e6705 collection_providers_test: SSE Output in ResponseBody tested 2025-07-07 20:14:09 +05:30
Manas Hejmadi
c5ce3bd3c4 SSE: Stop & Cancel Request buttons show up correctly 2025-07-04 16:20:35 +05:30
Udhay-Adithya
6c5862cd85 refactor: move authModel to HttpRequestModel 2025-07-03 12:12:18 +05:30
Manas Hejmadi
4207974b0e streamHttpRequest: Fixed TCP Length Clipping issue & Refactored Code 2025-07-03 02:27:16 +05:30
Manas Hejmadi
aef57df466 streamHttpRequest: Major Restructuring & other review changes 2025-07-03 01:01:07 +05:30
Udhay-Adithya
3903277aa9 chore: resolve merge conflicts 2025-07-02 21:03:16 +05:30
Udhay-Adithya
6c7c57d8fb fix: update environment model references and ensure correct request model is returned in pre-request script 2025-07-02 17:43:19 +05:30
Udhay-Adithya
fe6720f4c7 fix: ensure executionRequestModel is a copy to avoid modifying the original request model 2025-07-02 13:39:12 +05:30
Udhay-Adithya
737aac96ec fix: keep ui state consistent with the original request model when scripts are run 2025-07-01 20:03:22 +05:30
Udhay-Adithya
a17d6fdd9f chore: remove logging in EditAuthType 2025-07-01 01:16:01 +05:30
Udhay-Adithya
bf170e1446 feat: remove AuthModel from HttpRequestModel and integrate into HistoryRequestModel and RequestModel 2025-07-01 01:15:55 +05:30
Udhay-Adithya
74c09592bb refactor: rename authData to authModel and update related tests 2025-07-01 01:03:52 +05:30
Udhay-Adithya
449e32521e feat: refactor authentication handling to use new ApiAuthModel and update related components 2025-07-01 01:00:59 +05:30
Udhay-Adithya
51fe211ef6 feat: implement authentication handling in HTTP requests 2025-07-01 01:00:59 +05:30
Udhay-Adithya
171a118d38 feat: add authentication support with APIAuthType and APIAuthModel
- Introduced APIAuthType enum for various authentication methods.
- Created APIAuthModel with basic authentication fields.
- Updated RequestModel to include authType and authData.
- Implemented EditAuthType widget for selecting and managing authentication.
- Enhanced CollectionStateNotifier to handle authentication updates.

:wq
2025-07-01 00:57:10 +05:30
Manas Hejmadi
637a018c76 SSE: Duration updated & baseHttpResponseModel used for respModel 2025-06-29 17:13:03 +05:30
Manas Hejmadi
59f90d911d SSE InitalResponseFix & SSEDisplay SmartAutoScroll 2025-06-29 17:07:36 +05:30
Manas Hejmadi
383b6ad4bc SSE: SSEDisplay Implemented along with SSE ResponseBodyView Type 2025-06-29 17:07:28 +05:30
Manas Hejmadi
882b393fdd SSE: Stopping/Cancelling implementation 2025-06-29 17:06:21 +05:30
Manas Hejmadi
97db38a42d Added SSE ability to HTTPS method (fusion) 2025-06-29 16:58:52 +05:30
Ankit Mahato
7096c2f301 Update request model 2025-06-29 01:21:52 +05:30
Udhay-Adithya
68318e6b90 feat: add preRequestScript and postRequestScript to HistoryRequestModel 2025-06-23 22:33:22 +05:30
Ashita Prasad
67af625ccb Create pre post script utilities 2025-06-22 22:29:11 +05:30
Ashita Prasad
9e686a8145 export flutter_js_services 2025-06-22 21:28:09 +05:30
Ankit Mahato
9cb7f0fe10 Merge branch 'main' into add-feature-scripts 2025-06-21 20:39:25 +05:30
Udhay-Adithya
fe4858ecd0 feat: update pre-request and post-response script handling in CollectionStateNotifier
- Changed return type of handlePreRequestScript and handlePostResponseScript to Future<RequestModel> for better type safety.
- Updated the logic to return the modified request model after executing scripts.
- Ensured that the request model is updated correctly in the sendRequest method after executing the pre-request script.
2025-05-19 16:54:32 +05:30
Ashita Prasad
6e638bb383 Add DashBot to settings 2025-05-17 16:57:16 +05:30
Udhay-Adithya
14ff728870 fix: JS bridge message handling and script execution checks
Refines JS bridge handlers to process messages directly as typed arguments, removing unnecessary JSON decoding and clarifying error logs.
Updates logic to only execute post-response scripts when present and corrects a warning message.
2025-05-16 14:30:58 +05:30
Udhay-Adithya
c2c67a7fca feat: implement post-response script handling and update environment variables 2025-05-02 01:26:52 +05:30
Udhay-Adithya
0645ab1a33 feat: allow scripts to modify environment variables
Refactors pre-request script execution to support environment variable manipulation.

Introduces a simplified key-value map for the environment within the JavaScript context, allowing easier script interaction. Updates the `ad.environment` JS API accordingly.

Implements logic on the Dart side to translate the structured environment model to the simple map before script execution and merge changes back from the map to the model afterward, persisting the modifications.
2025-05-01 20:14:00 +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
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
Ankit Mahato
c0a622ccfb Fix mobile app rebuilding issue 2025-04-06 02:01:15 +05:30
Ashita Prasad
9cf22669bf Merge pull request #525 from StormGear/add-feat-insomia
Added insomia importer
2025-02-24 12:52:33 +05:30
Ashita Prasad
11055f7ea8 Update environment_providers.dart 2025-02-24 12:13:13 +05:30
Ashita Prasad
b54074ad4b Merge pull request #563 from opheliagame/fix/clear-history
fix: clear history button now updates parts of the history page
2025-02-16 11:22:13 +05:30
Ashita Prasad
d753a7f83d Update history_providers.dart 2025-02-16 11:18:56 +05:30
Ashita Prasad
2400c66bae revert re-arrange 2025-02-15 18:42:33 +05:30
Ashita Prasad
2cdacc7d67 Remove httpClientManager dependency 2025-02-15 18:21:18 +05:30
opheliagame
d30d209739 fix: clear history button now updates parts of the history page correctly 2025-02-10 09:38:08 +05:30
Clasherzz
2aefc56a89 closed client in remove function 2025-02-09 21:06:16 +05:30