How to Create a Dynamic Request Body // Postman Pointers

Опубликовано: 05 Октябрь 2024
на канале: Dev Odyssey
8,366
53

Welcome to Dev Odyssey Postman Pointers - Postman best practices that improve your workflow. In this inaugural video, we're covering how to use, create and modify a dynamic request body. Refer to the links below for the Dynamic Request Collection in Dev Odyssey's Public Workspace:

https://www.postman.com/odevodyssey/w...

00:00 Introduction
00:56 JSON Dynamic Request Body
01:54 JSON Pre-Request Script
03:15 XML Dynamic Request Body
03:44 XML Pre-Request Script using cheerio.js
05:15 Outro

A dynamic request body allows you to completely customize the creation of a request body, as opposed to hard coding it with raw string, as often done.

Here, you can not only modify the values of attributes, but also attributes, objects, arrays, and more. This not only applies to JSON, but can easily be done with XML, using the embedded cheerio.js library.

Using Postman Environment variables, and Pre-Request Script, this is easily accomplished.

Also, check out Postman's new UI for Postman on the Web! Get started with creating your own Postman Requests, Collections, and more, all in your web browser.
https://go.postman.co/build 193

Learn more on how to use Postman from my other videos below.

Watch - How to Upload, Download, and Preview Files (PDFs) with Postman
   • How to Upload, Download, and Preview ...  

Watch - Learning GraphQL With Postman
   • Learning GraphQL With Postman  

Watch - Web Scraping with Cheerio.js and Postman Visualizer
   • Web Scraping with Postman  

Watch - How to Filter Data with Postman Visualizer
   • How to Filter Data with Postman  

Watch - How to Visualize Data in Postman here!
   • How to Visualize Data in Postman  

Watch the first series, Introduction to Postman here!
   • Introduction to Postman Tutorial  

Watch the second series, Advanced Postman here!
   • Advanced Postman  

Download:
https://www.postman.com/downloads/

Questions about this episode or Postman? Ask in the comments!