Postman自动化

发布于 2025-02-06 02:23:42 字数 121 浏览 3 评论 0原文

邮递员 - 我有一个在2部分中的请求。在第一部分(POST请求)中,它将生成预签名的S3 URL,在第二部分(PUT请求)中,需要将文档上传到生成的预签名URL中。 我需要自动化此流程。 任何人都可以帮忙吗?

谢谢

Postman - I have a request which is in 2 part. In 1st part(POST request), it will generate a pre signed s3 url and in 2nd part(PUT request), a document need to be uploaded in the generated pre-signed url.
I need to automate this flow.
Can anybody please help.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云朵有点甜 2025-02-13 02:23:43

简单的。将第一个请求放在预先要求脚本中,将响应的一部分保存在全局/环境变量中,在请求中使用此变量。
这是一个可以帮助您的文档: https://learning.postman.postman .com/docs/writing-scripts/pre-request-scripts/

Simple. Put the first request in the pre-request script, save the part of the response in a global/environment variable, use this variable in the request.
Here is a documentation to help you: https://learning.postman.com/docs/writing-scripts/pre-request-scripts/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文