Postman has become the default option to make and test API requests. Although we might be familiar with making basic http requests with postman, it gives us a lot more power in terms of programming things around an API request.
https://www.arbazsiddiqui.me/using-pre-request-script-in-postman/
origin - https://www.pipiscrew.com/2020/03/using-pre-request-script-in-postman/ using-pre-request-script-in-postman