Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
324 views
in Technique[技术] by (71.8m points)

node.js - How To print get something on response in postman if the server successfully processed the request but it is not returning any content?

Screen shot

Here in this screenshot you can see it returned the OTP successfully but how to get the content in response in loopback4? Can anyone help me with this??


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It is hard to identify the expected output in your question.

Print somthing out in postman

Cause it is using javascript you can simply use the console.log()

Print response

console.log(pm.response)

Sample output: {id: "7817f7b6-037d-45ef-a033-05001cca84b6", status: "OK", code: 200…}

Print json of response

console.log(pm.response.json())

Sample output: {authToken: "RhHutA0vICpOa3fIQpiRlBUhBVUx", token_type: "bearer", expires_in: "3600"…}


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

63 comments

56.5k users

...