Is there a way to set a variable (global or environment, does not matter) from outside of the documentation portal upon launching it? E.g. mydocportal.com?apiKey=blahblahblah? Or even as a POST request.
Details:
I run a documentation portal accessible from my website. The website has the API key, and I want to pass it on to the documentation portal. I also want to pass another parameter (language based on the locale language in the website).
I’ve already tried:
Looking up in Google, Stack Overflow, and documentation.
You can set variables via postman UI
You can run a request before main requests that will receive a token, after that you can parse the response and write it to variables
I want to interact with the Postman web application (documentation portal) from outside. Prerequest test is interesting. Can it look at the URL that invoked it though? Are there system variables like “$current_url” or “$query_params”?
HI @vadimberman, I think the documentation page that talks about the pm object may be helpful for you! It lists all of the methods you can use in the Pre-request and Tests tabs for testing your request and response data.