The Best way to test your REST API Code | Test Rest API with VSCode

Поділитися
Вставка
  • Опубліковано 26 сер 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.

КОМЕНТАРІ • 35

  • @DevOpsJourney
    @DevOpsJourney  3 роки тому +11

    Are you using VS Code as an API client yet?

  • @erkanturan7215
    @erkanturan7215 Рік тому +17

    *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

    • @luca1583
      @luca1583 8 місяців тому

      You're a legend. Thank you !

  • @labanane3129
    @labanane3129 Рік тому +1

    Lifesaber you need a lightsaver, lol seriously thank you you're a lifesaver.

  • @random2059
    @random2059 Рік тому

    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

  • @puppyguard2689
    @puppyguard2689 9 місяців тому

    Quick and easy to understand! Thank you.

  • @nine9winged
    @nine9winged 2 місяці тому

    Great tool. Thanks for sharing your knowledge

  • @zzzbyyy
    @zzzbyyy 2 роки тому

    ty so much for sharing this extension... now testing api's will be so much easier

  • @user-hx1sp2zu6p
    @user-hx1sp2zu6p 3 місяці тому

    Is this based on some kind of standard or something specific to VSCode ?

  • @ainunnafiah3806
    @ainunnafiah3806 2 місяці тому

    Command 'Rest Client: Send Request resulted in an error command 'rest-client.request' not found

  • @viewvue3744
    @viewvue3744 2 роки тому

    why i have an error : command 'rest-client.request not found' when i ctrl + shift + p and used Rest client: send request ?

  • @tunamusic2314
    @tunamusic2314 Місяць тому

    how over postman ?

  • @jongjinjung2519
    @jongjinjung2519 3 роки тому +1

    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?

  • @jagdeepsingh-vj2mv
    @jagdeepsingh-vj2mv Рік тому

    It helps me too thanks for this video

  • @MrSuhas888
    @MrSuhas888 2 роки тому

    How do you configure you connections and like password and access tokens

  • @MiSt3300
    @MiSt3300 3 роки тому +2

    you could've shown how to post data, that's pretty useful too

    • @DevOpsJourney
      @DevOpsJourney  3 роки тому

      Thanks for the feedback, will do it for my next tutorial. Thanks.

    • @MiSt3300
      @MiSt3300 3 роки тому

      @@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 (;

  • @pepemonleon1652
    @pepemonleon1652 2 роки тому

    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!

    • @DevOpsJourney
      @DevOpsJourney  2 роки тому

      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.

  • @manny_here
    @manny_here 3 роки тому +6

    Tattoo-eeen

  • @muhammadsalikin3886
    @muhammadsalikin3886 2 роки тому

    Thank you DevOps Journey

  • @_XY_
    @_XY_ 2 роки тому

    Nice

  • @simmigonflagg8720
    @simmigonflagg8720 2 роки тому +1

    I think maybe record this video again to get syntax highlighting

    • @tombyrer1808
      @tombyrer1808 2 роки тому

      Yea, like this one. Also get clicky "Send Request"
      ua-cam.com/video/RcxvrhQKv8I/v-deo.html

  • @hasanalshareef5047
    @hasanalshareef5047 Рік тому

    hi , is not working with localhost it says connection was rejected

    • @DevOpsJourney
      @DevOpsJourney  Рік тому +1

      You sure your setup is correct? I suggest testing with curl

    • @hasanalshareef5047
      @hasanalshareef5047 Рік тому +2

      @@DevOpsJourney is work with external api only with localhost not working , i will try different ways for localhost , thanks for reply.

    • @flaykaz
      @flaykaz Рік тому

      @@hasanalshareef5047 u fix ur problem ? i need to know how to use it in local host

  • @freelancecoder6956
    @freelancecoder6956 3 роки тому

    where is discord link??

    • @DevOpsJourney
      @DevOpsJourney  3 роки тому

      discord.com/invite/NW98QYW are you able to join?

  • @nightclocker1851
    @nightclocker1851 2 місяці тому

    Thanks helped me