Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple requests per file #21

Open
1 of 4 tasks
Odonno opened this issue Jul 26, 2016 · 8 comments
Open
1 of 4 tasks

Allow multiple requests per file #21

Odonno opened this issue Jul 26, 2016 · 8 comments

Comments

@Odonno
Copy link

Odonno commented Jul 26, 2016

  • 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:

  • 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
@Huachao
Copy link
Owner

Huachao commented Jul 27, 2016

@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.

@Odonno
Copy link
Author

Odonno commented Jul 27, 2016

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

@Huachao
Copy link
Owner

Huachao commented Jul 27, 2016

@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?

@Odonno
Copy link
Author

Odonno commented Jul 27, 2016

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.

@Odonno
Copy link
Author

Odonno commented Jul 27, 2016

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

@Huachao
Copy link
Owner

Huachao commented Jul 27, 2016

@Odonno , thanks so much 👍

@Huachao
Copy link
Owner

Huachao commented Nov 7, 2016

@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.

@Odonno
Copy link
Author

Odonno commented Nov 7, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants