vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Output or Print response or value of variable (

Open dyardy opened this issue 5 months ago • 4 comments

How best to get the results of api call and output to console/window to ensure the value is correct?

Here I want to see the value of @sessionId Is this possible?

# @result
GET {{hostname}}/start_session
content-type: application/json
Authorization: Basic {{username}}:{{password}}

@sessionId = {{result.body.$.session_Id}}

(how do i see the returned value from @sessionId)

dyardy avatar Mar 05 '24 17:03 dyardy

Yes! I am also missing a way to print or echo the value of @sessionId (or whatever other variable I might be defining) , just so that I can visually validate that I have to proper value before I continue!

stratosgear avatar Apr 16 '24 16:04 stratosgear

Also I believe this is very similar to #1001

stratosgear avatar Apr 16 '24 16:04 stratosgear

Does this help: https://github.com/Huachao/vscode-restclient/issues/1001#issuecomment-2059477543

stratosgear avatar Apr 16 '24 16:04 stratosgear