How to call a POST API request (Login API having request body with Username & Password field) from pre-request script tab of an another GET API which uses token from above API's body in its request url.
Login API : POST method; request body : username and password; response body: token. Get Customer Records API : GET method; request URI : /token/
Want to cover this end to end scenario in one test only in Postman. Can please anyone help me with the pre-request script for this? How should I invoke Login API?