0👍
Programatically if you wanna print the response in your terminal then you need to something like
axios().then(resp => console.log(resp));
If you wanna test your api’s from within VSCode then do
Check this out a VSCode extension
https://www.thunderclient.io
0👍
I am not sure if their is anyway possible for you to fetch data from API on the terminal of VScode. Unless you can create your won Vs Code plugin to handle on the same.
Check out this article, it will help you with that.
https://blog.bitsrc.io/vs-codes-rest-client-plugin-is-all-you-need-to-make-api-calls-e9e95fcfd85a
Source:stackexchange.com