Commit Graph

151 Commits

Author SHA1 Message Date
Udhay Adithya
65f375c69e Merge branch 'foss42:main' into basic-auth 2025-07-12 00:19:13 +05:30
Udhay-Adithya
6c5862cd85 refactor: move authModel to HttpRequestModel 2025-07-03 12:12:18 +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
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
Ashita Prasad
18f4687d30 Update HistoryMetaModel 2025-01-12 16:37:57 +05:30
Ashita Prasad
76341d7e0c code optimization 2025-01-12 15:48:00 +05:30
Ashita Prasad
e89118b22d Support to add request name 2024-12-26 05:14:10 +05:30
Ashita Prasad
4ba44b728f refactor 2024-12-21 17:37:21 +05:30
Ashita Prasad
1df49bd727 Refactor 2024-12-21 10:19:34 +05:30
Clasherzz
157ecf220c last minute code refactoring 2024-12-19 09:50:33 +05:30
Clasherzz
c416932efd edited collection_provider 2024-12-18 22:36:30 +05:30
Ashita Prasad
1ea4dd07b4 Update collection_providers.dart 2024-12-16 04:00:18 +05:30
Ashita Prasad
b3be6a9fa5 refactor collection provider 2024-12-16 00:10:49 +05:30
Ashita Prasad
bc2fc49fc7 Update collection_providers.dart 2024-12-15 23:51:46 +05:30
Ashita Prasad
26ad73c63b Revert unnecessary changes 2024-12-15 23:41:12 +05:30
Ashita Prasad
fbe1fbecdc Update collection_providers.dart 2024-12-15 23:38:17 +05:30
Ashita Prasad
db23d199fa Merge branch 'main' into add-request-cancellation 2024-12-15 07:51:01 +05:30
Ashita Prasad
65668fddcc Update environment_providers.dart 2024-12-15 07:39:45 +05:30
Ashita Prasad
2bb54ec4d6 Add SupportedUriSchemes support 2024-12-15 07:37:18 +05:30
sasanktumpati
7d073f2567 feat: implement request cancellation tracking with bounded queue 2024-12-13 07:47:56 +05:30
sasanktumpati
edd69b986a refactor: remove unnecessary state changes 2024-12-07 15:52:18 +05:30