httpyac icon indicating copy to clipboard operation
httpyac copied to clipboard

Feature - Ability to save actual request files as a native functionality

Open skirankumars31 opened this issue 8 months ago • 0 comments

I have the request json file with a lot of variables that need to the replaced at runtime. While testing i had a failure and we had to figure out exactly what values were sent like uuid and timestamp to figure out what was going wrong in the system and it was difficult because the actual request with replaced variables is not saved anywhere. Andreas pointed out in Discord that it can be done be done using a script but i figured out that building this functionality natively would be more useful because this is more or less a universal problem for all api testers. Basically i thought something like this

<@ input/request.json >>! input/actual/request.json

The actual request with all the values will saved in the arguments(input/actual/request.json) that is given

So i played around with the code and implemented the functionality in a hurry. I have submitted a pull request and i would love to have some feedback and collab on the pull request since im not that much of a coder.I have tested my code and it works

Thanks Kiran

skirankumars31 avatar Jun 12 '24 23:06 skirankumars31