I am trying to automate API testing using Postman. Apart from AuthAPI every other API is decorated with [Authorize]
so I need to pass token.
In my collection, the first API is AuthAPI, This API returns the JWT token.
if I run the API in collection runner, I am getting 403
error for all the APIs in the collection.
However, If I do manually copy the token recieved in the AuthAPI resonse & paste in the Authorization header, it returns the desired response.
How do I attach the token received in the response of the AuthAPI in the header of the subsequent request (Postman) when running the API in the Automated way.(via Collection Runner)
Thanks