Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

how to pass data between requests in api

To pass data between requests in postman

I would use Enviroment or Global Variable
Lets say I want to pass my token between
requests. Than I would create empty global
variable and save the entire token response
as json and print the accessToken from 
response and set the value of global variable
to json field by writing like for example:

var responseJson = pm.response.json(); 
console.log( responseJson.accessToken  );
pm.globals.set("my_secret_token",  responseJson.accessToken );
Comment

PREVIOUS NEXT
Code Example
Typescript :: get popular posts on laravel 
Typescript :: js Validating sets 
Typescript :: Lua programming - setting up physics 
Typescript :: ngsw pwa how to check version update 
Typescript :: ionic ios REST API CORS issue 
Typescript :: how can i get 2 inputs in singal line seprated by space 
Typescript :: how to call a function in a macro with variadic arguments c++ 
Typescript :: Highcharts error #17: www.highcharts.com/errors/17/?missingModuleFor=candlestick - missingModuleFor: candlestick 
Typescript :: function in c that converts current time in timezone 
Typescript :: rac bar charts plotly 
Typescript :: function call in Angular using typescript creates infinite loop 
Typescript :: js Validating nested promises 
Typescript :: update object single property of firebase database object in angular 
Typescript :: typescript cast to type remove properties 
Typescript :: which of the following object types below cannot be replicated 
Typescript :: whats my name 
Typescript :: Get the Post Categories From Outside the Loop 
Typescript :: typescript question mark 
Typescript :: INTENT 
Typescript :: hide elements using DOM in TypeScript 
Typescript :: Number of power set of {a, b}, where a and b are distinct elements. 
Cpp :: interpreter latex matlab 
Cpp :: qdebug 
Cpp :: conditional cout in c++ 
Cpp :: ue4 spawn actor c++ 
Cpp :: cpp sample code 
Cpp :: input output c++ 
Cpp :: angle to vector2 godot 
Cpp :: strcat without using built in function 
Cpp :: precision of fixed in c++ 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =