Using the REST Client VSCode Plugin
Вставка
- Опубліковано 12 вер 2024
- Learn how to use the REST Client plugin for VSCode to test your APIs. I'll cover how to write basic tests, use variables, and how to easily switch between environments so you can configure the plugin for different targets.
🔴 Subscribe today!
/ @brianmmdev
👋 Connect w/me:
▪ Discord: fullstack.chat
▪ Twitter: / brianmmdev
▪ Website: brianmorrison.me
▪ Twitch (Gaming): / brianmm02
__________________________________________
🖥 My Rig
▪ CoolerMaster MB511: amzn.to/2AZfPUc
▪ GIGABYTE X570 AORUS Elite Wifi: amzn.to/2AZijlt
▪ Sabrent 1TB Rocket: amzn.to/316zIDy
▪ Corsair Vengeance RGB Pro 64GB: amzn.to/3epbybf
▪ AMD Ryzen 9 3900X: amzn.to/2CxwYov
▪ ASUS ROG STRIX GeForce GTX 1080: amzn.to/3hYuEar
__________________________________________
🎥 Streaming Gear
▪ SteelSeries Arctis 7: amzn.to/3hOUpJX
▪ Elgato Game Capture HD60 Pro: amzn.to/2V8nTc8
▪ Logitech C922x Pro Stream: amzn.to/2V7PKZY
▪ TaoTronics Camera Light: amzn.to/37QI4Ax
▪ InnoGear Microphone Arm: amzn.to/37Ql8Bk
▪ Audio-Technica AT2005USB: amzn.to/3ajIuRh
__________________________________________
⏯ My Coding Series'
▪ Coding NodeJS APIs: • Coding NodeJS APIs
▪ Coding Discord Bots: • Coding Discord Bots
__________________________________________
📚 Other Excellent Learning Resources
▪ freeCodeCamp: www.freecodeca...
Please note that links in this description may or may not be affiliate links, where I make a small commission if used.
Thanks For Watching!
Thanks Brian for releasing me from my commercial iron chains. I'll be donating to this guy's effort.
Very well presented! I actually understood EVERYTHING you presented.
Keep'em coming!
Helped me a lot. Exactly the details that I needed and couldn't realize in docs. Thank you.
This extension is a very useful. My machine cannot handle more and more instances of electron so it's a nice alternative to postman and insomnia
Yeah its pretty awesome! Loving what its capable of.
Awesome. Thanks Brian! Keep posting!
Thanks! Will do!
Thank you! Much easier to understand than docs :)
Glad it was able to help 😊
Oh man, that was Efficient! Short and Effective!
Nice video with efficient setup and use, thanks, i hope they (res client plugin developper) could add testing to it, it's a fantastic tool
This is great! Going to install this now :)
Really interested in hearing your thoughts 😁
Thank you !!
Thanks!
Great video, liked and subbed
Thank you :D
Thanks guy
Do you know how it compares to the Thunder Client extension?
Sorry I don’t. Haven’t used Thunder Client yet
@@brianmmdev Ok. thanks :)
It's very helpful. Please suggest how to pass JSON object in POST. Thanks in advance.
Very helpful! Thx
Glad it helped!
The only issue I have is that sometimes link "Send Request" becomes not clickable and I have to re-open rest file. This happens a lot when I edit other files and switch back and forth to rest file to test.
Is there a way to run all requests at once?
three ### ah now its working thankss
how we can write pre-request-scripts written in postman in rest client?
hey,i got a probel in my case i cannotn make the .http file ,any solution?
This was really useful , how can I get specific json data from response ?
Not sure I understand. What are you looking to do specifically?
Loving the extension, but if you close that response-window containing your actual json, it aint comming back. ever. Nuke extensions folder/data, VSC etc. Its gone. Now i have to press F1 and run "Rest.client.request" command manually instead of using the command CTRL+ALT+R.... Found a fix for this? HIT ME UP!
That's strange, sounds like a bug because I close the window all the time when Im done with it.
Hi, great tutorial. I am new in learning APIs. Do you have step by step creation of Java APIs using VScode?
Thank you! Sorry, I actually am not overly familiar with Java.
@@brianmmdev Thank you.
Thank you
Is it possible to use this plugin with Supabase? I'm getting "message": "No API key found in request" even though I added an apikey and authorization key
I'm honestly not familiar with Supabase so I couldn't really say. If you want though, you can join the Discord I mod, we have at least one developer who has worked extensively with Supabase that would probably know better than I would: www.learnbuildteach.com
I might miss something in the documentation. How to put comments in .http files?
If I recall, use the hash mark #
Thanks....
I have [AllowAnonymous] attribute on HttpGet so how can send Authorization: None Rest Client???
I think you can ignore setting that header. Otherwise you can try setting “Authorization: None” directly below the URL. I haven’t tested this, but I believe it should work.
@@brianmmdev removed before you said bu now getting an error "getaddrinfo ENOTFOUND http"
@brian if I removed above space from JSON now getting error " header name must be a valid HTTP token ["{"]
@@ADSNGreenLife Youd need that space because it separates the headers from the body in the request.
If you want, DM me your code on Twitter (@brianmmdev) and I can help you debug it.
thanks
You're welcome!
How do you send a patch request through vs code rest client ?
I imagine it would be to just use the `patch` method in replacement of where Im using the others. I havent tested that though.
@@brianmmdev you are right, thanks
nice
Thanks for the video but imo Thunderclient is a much better plugin. It's like postman but much faster
I’ve heard that, but still haven’t done much with it. Appreciate the suggestion
Can i test file with this?
Not sure what you mean, what file?
@@brianmmdev I want to pass file(file upload) and json or plain text data together using multi part form data. How can I do that?
Helpful, one subscribe
Thank you!
Awesome mate... how do I pass NTLM auth in the request? 🤔
Thanks! Looks like that feature is on the backlog for now: github.com/Huachao/vscode-restclient/issues/15
Great video, liked and subbed
Glad you liked it, thanks for the sub too!