Vscode-restclient: Allow multiple requests per file

Created on 26 Jul 2016  路  8Comments  路  Source: Huachao/vscode-restclient

  • VSCode Version: 1.3.1
  • OS Version: Windows 10.10586
  • REST Client Version: 0.6.1

Steps to Reproduce:

  1. Create a .rest or .http file
  2. Add multiple HTTP requests
  3. Execute and see nothing happens

Potential solution:

Create an array of HTTP requests based on REST keywords (GET, POST, etc...) and execute each one after another.

Tasks:

  • [x] Group multiple requests in the same file (add new delimiter and way to trigger)
  • [ ] Handle array of REST requests from a single file
  • [ ] Execute REST requests one after another
  • [ ] Add some style to see the separation of responses in the result pane
enhancement

Most helpful comment

@Odonno I've already supported multiple requests in the same file which is separated by delimiter ###, and you can simply kick off the request just placing the cursor anywhere between the delimiters. You can try the latest version 0.10.1, and you can view the usage details in README.md. Other tasks will be done later.

All 8 comments

@Odonno , one problem for this suggestion now is that, since I preview the response in the same pane, if we implement this, we need to preserve the preview result for each issued request.

@Huachao You mean, one pane for each request ? Or one pane that contains all requests one after another ?

@Odonno I am so sorry that I didn't express myself clearly. I mean how to display the response(s) in the scenario you've mentioned that all the requests all in the same file, do we need to render each response of the requests in a separate response preview pane, or show all the responses in the same pane, just append the response result?

I think, for a consistency purpose, as we have all of our requests in the same file, we need all responses in the same file too.

I started a list of tasks for this issue, see my first comment.

@Odonno , thanks so much :+1:

@Odonno I've already supported multiple requests in the same file which is separated by delimiter ###, and you can simply kick off the request just placing the cursor anywhere between the delimiters. You can try the latest version 0.10.1, and you can view the usage details in README.md. Other tasks will be done later.

@Huachao Nice ! Thanks for the info. I will try it as soon as I can. Good job.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

heneds picture heneds  路  32Comments

ben-foster-cko picture ben-foster-cko  路  19Comments

Odonno picture Odonno  路  22Comments

akalcik picture akalcik  路  15Comments

olivier-voutat picture olivier-voutat  路  23Comments