postman - 限制 Postman 上的某些 HTTP 方法

标签 postman

我需要限制我的环境中的一些 HTTP 方法,例如 PUT、POST 和 DELETE。在 POSTMAN 中可以吗?

这将帮助我避免在我的环境中执行 POST、PUT 或 DELETE 错误。

最佳答案

您可以将变量添加到“方法”下拉列表中 - 将 {{METHOD}} 添加到字段,然后在环境文件中添加具有所需值的相同变量名称?

enter image description here

您也可以从下拉列表中删除您不想使用的方法,如果您再次需要,可以在之后添加这些方法。

https://learning.postman.com/docs/postman/customizing-postman/#customizing-request-methods

关于postman - 限制 Postman 上的某些 HTTP 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61770934/

相关文章:

python - 为什么在浏览器开发工具和 BeautifulSoap/Postman 中获取不同的数据?

javascript - 如何在 CryptoJS 中使用私钥 (pem) 签署 JWT?

postman - 如何在 Postman 中修复 "Could not get any response"?

postman - 如何从 postman 的响应正文中提取值

javascript - 在postman中创建常用函数或包含js文件?

java - JAX-RS @consume ("text/plain") 未获取字符串

javascript - 如何使用 multer 将文件从 postman 发送到 node.js

rest - 从一个 Postman 请求中获取 header 并将其注入(inject)其他请求中

ios - 在 Swift 中使用 API(Postman、Alamofire、SwiftyJson)

angularjs - postman 不就像浏览器一样吗?