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

if there is an array in response,could I handle it as a loop?

Open unclosable opened this issue 6 years ago • 2 comments

# @name query
GET http://example.com/query

###
@eachid = {{query.response.body.$.data[*]}}

POST http://example.com/post
Content-Type: application/json

{
"id":"{{eachid}}"
}

if http://example.com/query response like

{
      "data":["1","2","3"]
}

is there a way could post http://example.com/post three times?

unclosable avatar Jan 17 '19 10:01 unclosable

@unclosable currently this is not supported

Huachao avatar Jan 19 '19 08:01 Huachao

Related: https://github.com/Huachao/vscode-restclient/issues/906

icnocop avatar Feb 10 '22 19:02 icnocop