Commit Graph

123 Commits

Author SHA1 Message Date
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
Ashita Prasad
2cdacc7d67 Remove httpClientManager dependency 2025-02-15 18:21:18 +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
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
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
sasanktumpati
036bac311c feat: add ability to cancel in-flight HTTP requests and manage client lifecycle 2024-12-07 13:06:15 +05:30
sasanktumpati
41bd86692f feat: add request cancellation functionality 2024-12-04 02:38:30 +05:30
Ashita Prasad
a3536b021b refactor 2024-10-22 07:06:06 +05:30
DenserMeerkat
2fc02eadd1 feat: history of requests 2024-07-21 19:55:32 +05:30
Ragul Raj
8eadd7f8fa Merge branch 'main' into add-feature-history 2024-07-20 13:59:15 +05:30
Ashita Prasad
71f987e72f Update providers 2024-07-15 00:08:44 +05:30
DenserMeerkat
d5feb0b091 wip: history request groups 2024-07-14 23:16:29 +05:30
DenserMeerkat
ebe576a118 feat: env variable substitutions 2024-06-16 22:14:27 +05:30
DenserMeerkat
7fcfe4f8e8 feat: environment pane 2024-06-13 18:47:52 +05:30
Ankit Mahato
38b2900075 Update collection_providers.dart 2024-04-19 21:47:48 +05:30
Ankit Mahato
bc2619b5b5 fix collection provider 2024-04-19 19:40:07 +05:30
Ankit Mahato
4fb79ebd25 Update collection_providers.dart 2024-04-19 19:34:16 +05:30
Ankit Mahato
99c02aad19 Merge pull request #365 from yashas-hm/fix-prompt-wo-changes
Fix prompt only when changes made
2024-03-28 23:38:16 +05:30
Ankit Mahato
4518d54af3 Update collection_providers.dart 2024-03-28 23:35:45 +05:30
Ankit Mahato
4932be5ba7 Update collection_providers.dart 2024-03-28 21:46:54 +05:30
Yashas H Majmudar
34f9d27567 fix: renamed changeMade -> hasUnsavedChanges 2024-03-28 17:09:08 +05:30
Yashas H Majmudar
83c6e42864 fix: cleanup code and logic fixup 2024-03-28 14:25:26 +05:30
Yashas H Majmudar
0c04ff3343 fix: prompt when changes made to reorder 2024-03-27 22:10:11 +05:30
Yashas H Majmudar
017bc4f108 fix: prompt only when changes made 2024-03-27 22:06:32 +05:30
Ankit Mahato
eeff85ed27 Merge branch 'main' into elapsed-time-by-request 2024-03-24 05:12:50 +05:30
Ankit Mahato
19c8406d36 Fix for clearResponse 2024-03-23 17:50:19 +05:30
Yousef Rabia
83b3031a9a Update collection_providers.dart 2024-03-21 00:45:25 +02:00
Yousef Rabia
99c8a00278 Add timer for sending widget 2024-03-20 10:14:30 +02:00
Ankit Mahato
9b4076363d Refactor for clear response button 2024-03-17 22:20:24 +05:30
Mohammed Mohsin
087b4e6c5b feat: ability to clear response 2024-03-17 15:56:59 +05:30
Ankit Mahato
f9c32cddfd replace by getNewUuid 2024-03-10 23:10:19 +05:30
Ankit Mahato
beb6d52c79 Fix multipart request 2024-03-10 06:06:28 +05:30
Delwin Mathew
7dbe0b5d5f [feat] send multiple API requests in parallel 2024-03-01 12:22:52 +05:30
Ashita Prasad
8f8a57e031 cleanup chores 2024-02-08 08:49:40 +05:30
Ashita Prasad
d5d8de389c selectedId 2024-02-08 05:21:20 +05:30
Ashita Prasad
cb7f93fa98 selectedRequestModelProvider 2024-02-08 02:50:06 +05:30