DEV Community


Discussion on: 26 Miraculous VS Code Tools for JavaScript Developers in 2019

vishnuharidas profile image
Vishnu Haridas • Edited

15. REST Client is my favorite VSCode extension.

The plugin has an "Environment" feature where I can configure different environments.

Another sweet feature is capturing values from the responses of other requests. For example, you may have a /my-listings API that uses an AuthToken obtained from a /login API. The plugin can automatically call the /login API first, parse the response, extract the token, and use it in the /my-listings API.

Mostly I use the REST Client plugin as an API documentation tool. The documentation includes just those *.http files and push to a repo and share across the team so that the team can test the APIs easily by opening the directory in VSCode.