Filtering content with JavaScript
In this section, we'll look at a simple content filtering code example using JavaScript. We could write all the code ourselves, but there is a cool feature in Postman that generates code snippets for the requests we create. So, let's give that a try:
- To see Postman-generated code snippets, click on the code button on the right-side menu. The arrow in the following screenshot is pointing to the </> icon, which is the button to click:
- After clicking the code button, a code snippet pane will open in Postman. Change the code snippet type to NodeJs – Axios by selecting it from the drop-down list. Then, click the copy button shown in the following screenshot. This will copy the code snippet to your clipboard:
- After copying the code snippet to the clipboard, perform the following steps:
a) Log in to...