Home > Back-end >  Vue js - How can i show API request in terminal of vs code?
Vue js - How can i show API request in terminal of vs code?

Time:10-02

How can i show API request in terminal of vs code? So i'm using vs code and i would like to my API response in terminal. for example

GET -> API URL -> Status code

for each page that i enter.

CodePudding user response:

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

CodePudding user response:

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

  • Related