How to Set Base URL Variable in Postman for APIs
To set the base_url variable in Postman for APIs, follow these steps:
- Open Postman and create a new request.
- Click on the 'Settings' icon in the top right corner of the window.
- In the 'Settings' window, click on the 'Variables' tab.
- Click on the 'Add variable' button.
- Enter a name for the variable (e.g., 'base_url') and the value of the base URL for your API.
- Click 'Save' to save the variable.
- In your request, replace the URL with the variable name (e.g., '{{base_url}}/api/users').
- Click 'Send' to make the request using the base URL variable.
原文地址: https://www.cveoy.top/t/topic/mkJS 著作权归作者所有。请勿转载和采集!