Skip to content

reusing value from earlier response not working #167

Answered by AnWeber
LindevdH asked this question in Q&A
Discussion options

You must be logged in to vote

@LindevdH The error is not generated by httpyac but by vscode-restclient (you used CodeLens Send Request). To some extent you can probably solve it with vscode-restclient, even though @ref is not supported (search jsonpath in readme).
If you want to try your luck with my extension, it's best to uninstall vscode-restclient to avoid misunderstandings and use Code Lens Send or command httpyac.send. We have different approaches in detail. Your example should actually work, except that the array access is not respected.

###
# @name Basics
get http://10.2.9.20:6548/getValues

###
# @name refered
# @ref Basics
get http://10.2.9.20:6548/getValuesLinked/{{Basics[0].item2}}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LindevdH
Comment options

Answer selected by LindevdH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants