Postman自动化
邮递员 - 我有一个在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单的。将第一个请求放在预先要求脚本中,将响应的一部分保存在全局/环境变量中,在请求中使用此变量。
这是一个可以帮助您的文档: 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/