I am struggling with one think in postman (I use it first time). I watched a course where the guy shows where token in postman can be find and we should use it. Unfortunately I can't find in place where it should be
I have a free version of this program but it shouldn't be a problem. I am working on active environment



Overview
Postman: Want to get token and update data as clientServer: Provides token and update dataToken API:
Needs
username/passwordUpdate Data API:
Needs
access tokenHow works API call from Postman
#1 User Basic Authorization
#2 Get Token API Call
#3 Response Get Token Call
#4 Save
access-tokeninto environment variable#5 Update Data API Call with
access tokenWhere is Token
From GET access token API This is body of Response The 'message.token` is example of access token in JSON
How to parse/save Token
In
teststab this script, extract the token from body response And save it into environment variable.How to use Token
In the POST call, Bearer token type and get token value from environment variable by
{{variable_name}}Demo
Mock Server
Save as
server.jsInstall dependencies
Run server
Postman call
Environment
Get access token
URL
TeststabResult
Update Data
URL
with
access tokenResult
401 Unauthorized Error
If I use wrong credential, will get 401 error. Mock server only works matched user name and password.