Mutating the request body in Postman is something that many people need when building complex requests. Until April 2021 it was not possible to change the request body from scripts. Mutating the form-data is not also possible.
The most common use-cases are signing, encrypting, or converting the original body. But it can also be useful for creating complex payloads like dynamically adding properties or setting some random data.
Postman collection with all examples:
gist.github.com/vdespa/6ea80ff4c9a77b5de1a19cc4f3198623
Comments in JSON - Regex from Stackoverflow & Postman issue tracker
stackoverflow.com/a/62945875/766177
github.com/postmanlabs/postman-app-support/issues/4808
If this was helpful and you want to support me create more videos like this one, please consider subscribing.
👉 kzitem.info/rock/UUl_HXJjU--iYjUkIgEcTw
--
⭐️ Video contents ⭐️
⌨️ 00:00 - Introduction
⌨️ 01:17 - Changing the JSON body
⌨️ 05:05 - Request body from scratch
⌨️ 08:22 - Encoding the entire body
⌨️ 10:32 - Comments in JSON
⌨️ 13:12 - Conclusion
--
⭐️ 🎓 The complete guide to Postman (online course) ⭐️
Want to learn more about Postman? Check my Postman online course.
Get it at a special price and help support this KZitem channel:
vdespa.com/courses/
--
⭐️ 💬 I have a question. ⭐️
I do my best to answer all comments here on KZitem but I cannot make any guarantees.
If you have a question, it is best to ask your question on Discord, on the Postman User Group on Facebook, or on the Postman Community (links below).
If you are asking a question, make sure to include as many details as possible, including screenshots.
If you have purchased the Postman online course, please use the Q&A section or send me a message directly.
Please do not email me or contact me on other channels as I might not be able to answer. Sorry!
--
⭐️ 💡 I have a video idea ⭐️
Do you want me to create a video on a specific topic? Just fill out the form below:
forms.gle/uWEzXFQ2viJtZtvZ7
--
⭐️ 📺 Learn Postman on KZitem ⭐️
Collection of video tutorials:
▸ Learn Postman | bit.ly/2CFaf70
▸ Postman Crash Course | bit.ly/2YwEBBT
▸ Postman Tips & Tricks | bit.ly/2JLkXyU
___
⭐️ 📕 Free resources ⭐️
📌 DOWNLOAD the FREE Postman Quick Reference Guide
bit.ly/postman-quick-reference-yt
📌 Ask a question on Discord
discord.gg/tUrwTkSnqS
📌 Join the Postman User Group on Facebook
bit.ly/2OutAMZ
📌 Postman community forum (official)
community.getpostman.com/
--
⭐️ 📩 Contact & Imprint ⭐️
👉 Follow me on Twitter:
twitter.com/vdespa
👉 Follow me on Medium:
vdespa.medium.com/
👉 Follow me on Facebook:
facebook.com/Valentin-Despa-113038143438826
👉 Let's connect on LinkedIn:
www.linkedin.com/in/vdespa/
vdespa.com/imprint
Негізгі бет Programatically change the request body in Postman
Пікірлер: 40