[GH-ISSUE #5503] [feature]: The add directory feature also supports both pre-and post-execution scripts, which run alongside the scripts in the directory when the REST API is executed. #2116

Open
opened 2026-03-16 23:15:00 +03:00 by kerem · 3 comments
Owner

Originally created by @zhaoqiang1024 on GitHub (Oct 23, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5503

Is there an existing issue for this?

  • I have searched the existing issues

Summary

The add directory feature also supports both pre-and post-execution scripts, which run alongside the scripts in the directory when the REST API is executed.

Why should this be worked on?

For example, Postman's directory feature allows adding execution scripts to the directory. However, since some of our services require centralized encryption authentication, scripts can currently only be added to REST APIs. I need to copy the script to each REST API, which is redundant.

Originally created by @zhaoqiang1024 on GitHub (Oct 23, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5503 ### Is there an existing issue for this? - [x] I have searched the existing issues ### Summary The add directory feature also supports both pre-and post-execution scripts, which run alongside the scripts in the directory when the REST API is executed. ### Why should this be worked on? For example, Postman's directory feature allows adding execution scripts to the directory. However, since some of our services require centralized encryption authentication, scripts can currently only be added to REST APIs. I need to copy the script to each REST API, which is redundant.
Author
Owner

@tnmyk commented on GitHub (Oct 25, 2025):

Happy to work on this, please assign it to me! Occupied with some other stuff. Sorry!

<!-- gh-comment-id:3445281484 --> @tnmyk commented on GitHub (Oct 25, 2025): ~Happy to work on this, please assign it to me!~ Occupied with some other stuff. Sorry!
Author
Owner

@shedrackhabila159-svg commented on GitHub (Oct 25, 2025):

Good

<!-- gh-comment-id:3446904506 --> @shedrackhabila159-svg commented on GitHub (Oct 25, 2025): Good
Author
Owner

@zhaoqiang1024 commented on GitHub (Jan 21, 2026):

@liyasthomas Is this feature supported by the plan?

<!-- gh-comment-id:3777137359 --> @zhaoqiang1024 commented on GitHub (Jan 21, 2026): @liyasthomas Is this feature supported by the plan?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2116
No description provided.