launchiamenterprise / keyrunner

KeyRunner: A secure, codeless VS Code extension for API testing & Designing. Features include data encryption at rest, sensitive data masking, and the innovative Playground for chaining API requests without coding
https://keyrunner.app
MIT License
9 stars 0 forks source link

No feature/provision to write “Pre-Request” Script/ “Post-Request” Scripts #19

Closed akhot09 closed 1 week ago

akhot09 commented 1 week ago

If we need send any request to API call (like calling Key Vault APIs) before running required API call, we don’t see any “Pre-Request Script” tab (Like in Postman) in Key Runner API client. Also is there any plan to provide “Post-Request” Script tab, so that we can capture needed values from API response or perform validations using custom code.

I am using Key Runner Windows/Desktop Application - v1.0.45.0

The current “Tests” tab provides limited option to perform API response validations with pre-defined set of assertions but does not provide any option to write any custom code/use of JSON path etc.

4

launchiamenterprise commented 1 week ago

we are working on scripting feature(pre & post) and it will be released as part of next release. Regarding vault integrations we are building connectors for free version with which you can seamlessly integrate with vault to store or retrieve environment variables. We will update this thread once we release a new version.

launchiamenterprise commented 1 week ago

@akhot09 Beta version has been released for scripting with V#1.0.47 .

akhot09 commented 3 days ago

@launchiamenterprise --

Can you please point us to docs/documentation which brief us with commands, syntax to be used to add scripts in "Pre-Script" and "Post-Script" Scripts section which can help to perform post validations or capture values during chaining of requests.

Below screen shot is from v1.0.50 KeyRunner extension installed part of Visual Studio Code : image

launchiamenterprise commented 3 days ago

We are in the process of updating documentation and will update this thread once we document the usage. Hopefully by end of this week.