API Clients – Chaining Requests

POSTMAN

https://www.getpostman.com/docs/chaining_requests

http://blog.getpostman.com/2014/01/27/extracting-data-from-responses-and-chaining-requests/

var jsonData = JSON.parse(responseBody);

postman.setEnvironmentVariable("token", jsonData.token);

 

Add

{{token}}

PAW

Variables from previous responses

https://paw.cloud/docs/environments/environments-from-responses

In the response view, right-click on the field you’re interested in and pick Copy as Response Body Dynamic Value

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: