Skip to content

Commit

Permalink
Fix #7 - wrong variable usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
vdespa committed Jan 10, 2021
1 parent f5a9e07 commit 0e19bde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# The short X.Y version
version = u''
# The full version, including alpha/beta/rc tags
release = u'Version 1.6.4 - January 2021'
release = u'Version 1.6.5 - January 2021'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/request-creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Below I am fetching a name from a remote API and setting it as a variable for us
pm.sendRequest(options, function (error, response) {
if (error) throw new Error(error);
var jsonData = response.json();
pm.globals.set('name', 'jsonData.name');
pm.globals.set('name', jsonData.name);
});

**Tip** You can generate such requests by using the "Code" generator button right below the Save button, once you have a request that works. There you can Select NodeJS > Request and the syntax generated is very similar to what Postman expects.
Expand Down

0 comments on commit 0e19bde

Please sign in to comment.