The Best way to test your REST API Code | Test Rest API with VSCode
HTML-код
- Опубликовано: 12 сен 2024
- In this video, we go over one of my favorite VS Code extensions: The Rest Client.
With This Extension - I can easily test queries to REST APIs within my Code environment. No need for complicated tools like postman or manually building queries. Simply put the URL in a text file, hit the hotkey and you can run a REST query.
Are you using VS Code as an API client yet?
*Useful Tip:* If you write these test requests in a file with .http extension then VSCode gives you a "Send Request" button in the editor automatically. Moreover, if you seperate each request with "###", then you get an individual button for each request
You're a legend. Thank you !
Lifesaber you need a lightsaver, lol seriously thank you you're a lifesaver.
Great tool. Thanks for sharing your knowledge
Quick and easy to understand! Thank you.
ty so much for sharing this extension... now testing api's will be so much easier
Thanks a lot i was learning MERN stack in CCBP , they provided docker VS code ubuntu ,
i could not findout the extension they were providing , but now i can do that on my own VS code , damm this the extension , i was searching for
Is this based on some kind of standard or something specific to VSCode ?
It helps me too thanks for this video
Command 'Rest Client: Send Request resulted in an error command 'rest-client.request' not found
you could've shown how to post data, that's pretty useful too
Thanks for the feedback, will do it for my next tutorial. Thanks.
@@DevOpsJourney I actually posted my own tutorial that's over 1hr long about authorization in an express server using JWT, and I used your REST Client tips (;
Maybe you could check it out and tell me what is your opinion? I am still a noob in terms of tutorialmaking (;
Thank you for the tutorial! I tried it on my own and I get an error saying "The connection was rejected". What would be the potential problem?
I am facing the same issue.
why i have an error : command 'rest-client.request not found' when i ctrl + shift + p and used Rest client: send request ?
Just answering: Why would be better use this extensions instead of Postman? I have tried to use it but It feels less productive than Postman. Unless I'm missering something. Thanks!
Postman is good but I find it very heavy and I'm almost always in VSCode. I use the VSCode Rest client for most of my experimentation and use the tool Insomnia if I need something a little more dedicated to RESTful calls.
how over postman ?
Thank you DevOps Journey
How do you configure you connections and like password and access tokens
Tattoo-eeen
Nice
I think maybe record this video again to get syntax highlighting
Yea, like this one. Also get clicky "Send Request"
ruclips.net/video/RcxvrhQKv8I/видео.html
hi , is not working with localhost it says connection was rejected
You sure your setup is correct? I suggest testing with curl
@@DevOpsJourney is work with external api only with localhost not working , i will try different ways for localhost , thanks for reply.
@@hasanalshareef5047 u fix ur problem ? i need to know how to use it in local host
where is discord link??
discord.com/invite/NW98QYW are you able to join?
Thanks helped me