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

Sequential execution of multiple requests.

Open chaeron opened this issue 5 years ago • 9 comments

Since it's possible to name requests, it would be really useful if there was some way to specify sequences of requests that you want to run one after another.

Say we have a .rest file like this:

// @name request1

GET http://{{server}}:{{port}}/{{api_prefix}}/first_request HTTP/1.1
Content-Type: {{content_type}}

###

@returned_value = {{request1.response.body.returned_value}}

// @name request2

GET http://{{server}}:{{port}}/{{api_prefix}}/sceond_request/{{returned_value}} HTTP/1.1
Content-Type: {{content_type}}

###

Then it would be very useful if we could specify a sequence of requests somehow, maybe like this:

// @sequence request1 request2

And have restclient show a clickable "Send Requests" above the sequence that when clicked would execute request1 followed immediately by request 2.

Each request could still open a separate tab to show it's response value.

chaeron avatar Dec 02 '20 23:12 chaeron

duplicate of #199 ?

chadbr avatar Jan 21 '21 23:01 chadbr

Not really a duplicate.....since I would like to see all requests in one file, but then a mechanism to specify multiple/different sequences that you want to run that depend on those requests.

It's very possible a request would be included in multiple sequences.

This is beyond 199

chaeron avatar Jan 22 '21 16:01 chaeron

Still waiting for a response on this. Much as we like REST Client, the inability to run a sequence of requests limits it's usefulness.

chaeron avatar Jul 07 '21 17:07 chaeron

duplicate of #444

flyneth avatar Aug 04 '21 06:08 flyneth

duplicate of #444

This is NOT a duplicate of 444, as I noted in a prior comment. 444 is to execute all requests in a file. I do not want/need that. I want to be able to specify multiple/different sequences that I want to run requests that are specified in the file.

chaeron avatar Aug 04 '21 11:08 chaeron

Agree, was investigating its applicability and found it useful only for quick checks without chaining

liflovs avatar Dec 09 '21 09:12 liflovs

what's the latest on this?

cc: @chaeron

ryan6416 avatar Feb 09 '22 20:02 ryan6416

This is one of the "last" big things keeping me from changing all our internal rest things to this. would be so nice to run jwt login and then the get in one button click

HiveTechDev avatar Nov 04 '22 22:11 HiveTechDev