I am new in postman.
What I want to archieve is:
When I test the API via postman, I can put external data like JSON
Imagine:
You do a request to an API, which delivers you an attribute, which you will need for another request like:
someId = 12345
You need this value, to request another API.
Is there a way, how I can do dependencies in collection tests with external files?
That I can also store the result for example temporary for another request?
You can use Global variables as well as environment variables to store the data you have received as a response for the next request based on your requirements.
Global Variables: Save the value retrieved from the JSON response as a global variable.These values will be available across all environments. Given below is an example for the same:
Environment Variables: Save the value retrieved from the JSON response as an environment variable. These values will be available in a specific environment which you have selected as shown in the attached image: