If you are using postman for single requests you are missing the power of it
@ljoffrey7 ай бұрын
For sure. Bruno is a good alternative too
@afgone1234567 ай бұрын
How to would you do the environment management in VS?
@po65777 ай бұрын
this is probably the most important thing postman can do, without this, i will not event think about switching to any tool
@chunRayne247 ай бұрын
That will be a game changer if added to http files
@ayyubayyubzada40907 ай бұрын
Cant we declare token as dynamically? For example, declare it as global variable in somewhere which requests to the authentication endpoint and fetches the token. Based on the response of auth request(from another file), it uses always the newest valid token for all endpoints.
@cliffwakefield7 ай бұрын
This is the use case I would need to move many of my collections away from Postman.
@bogdanb9047 ай бұрын
@@cliffwakefield I don't think this will ever work with SSO also. Which Postman supports.
@OlleHellman7 ай бұрын
How do you handle secrets and making sure the token is not checked in?
@hoanghaitruong92097 ай бұрын
haha so how about to share your api to non-dev teammate example QA to try the api?
@michaldivismusic7 ай бұрын
The http file is nice, but is there a way to automatically generate it from an Open API spec? Keeping these up to date sounds like a pain.
@Petrovich20497 ай бұрын
It’s a pain only if you already have a big undocumented api. Otherwise for every api update just update the doc, realistically your api doesn’t /shouldn’t change so much that it becomes a drag, and in the end you have a doc written by a human with nuances explained, so later on your consumers waste less of your time with questions.
@QuintonCraig7 ай бұрын
@@Petrovich2049 Postman will generate the collections based on an OpenAPI spec. If you are new to a proj, this can save a crazy amount of time when you need to get a workable collection online.
@vibes9920007 ай бұрын
Thanks for the video. Can you also have part 2 of this video where you process the json responses and set new values of environment variables and then send 2nd http request to some another endpoint after that (using json data values from success response data).
@nirajchandrajoshi7 ай бұрын
Thank you for this great content ❤. I have just one question why you don’t use visual studio ? Or if I ask my question differently then how to use http files in visual studio and where to put token in global variables. Please help.
@syedhoque90577 ай бұрын
What tool do you use to annotate ?
@JJ-hg7um7 ай бұрын
Thanks for the useful video. I like it. BTW is there a way to automatically fetch the token before a request?
@amantinband7 ай бұрын
You can have the value auto populated via a previous response: github.com/Huachao/vscode-restclient?tab=readme-ov-file#request-variables
@DeejayMAK117 ай бұрын
Is there a way to create variable which will have dynamic values (from a response of another endpoint)?
@blank0017 ай бұрын
In Postman yes, not sure about this one
@abhishekbagchi60527 ай бұрын
Cool video. One Question what if I want to update the token in Environment value from a request
@ChrisWard747 ай бұрын
So I can do this all in postman. What about populating the variable with a HTTP call? Say I have an API call to get a token and then want to use that token in other API calls? I can do this in Postman, can it be done with this?
@vitek05857 ай бұрын
It is a great way for simple requests, but when it is necessary to login and then fetch a token to reuse in future requests, this tool is not convenient
@geoffreyolson97207 ай бұрын
Does postman handle that better, because I had the same problem using postman? I would have to login with the browser, then copy the token and manually set the token variable.
@vitek05857 ай бұрын
@@geoffreyolson9720 It is not needed to perform those actions, you just need to parse response and assign extracted value to the variable. That is available in the Tests tab. Here is a short example: let responseData = pm.response.json(); pm.environment.set("categoryId", responseData[0].id); Get first element of the array and assign id value to the variable. After that the categoryId is available for the further requests
@vitek05857 ай бұрын
No need to perform those manual actions. There is Tests tab where the response result can be handled. To extract and assign the value to the environment variable just need to parse response: let responseData = pm.response.json(); pm.environment.set("categoryId", responseData[0].id); In the example above I get the first item and assign extracted id to the environment variable. After that the variable can be used as value for the further requests
@GabrieleCannata7 ай бұрын
@@vitek0585 Exactly. Not a Postman fan, but that tool is on another level. Also standard OAuth2 authentication are handled automatically.
@QuintonCraig7 ай бұрын
@@geoffreyolson9720 just use the authorization of the collection, and configure the request to inherit the token from the collection
@fezhaez7 ай бұрын
If you delete postman how do you browse the internet?
@petter.envall7 ай бұрын
It is unfortunate that the variables are stored in the vscode settings instead of something like a file in the root of the httpfiles, or project root for that matter
@BBMG747 ай бұрын
Wow! Will test it out on Monday. Looks, that it's the first time I really can get rid of Postman
@SerafimMakris7 ай бұрын
incredibly good option to send requests through your IDE to check if your application works correctly. My point of view for this http logic are, needed to be add more features to be actual usable like do something with the response body or Code (set attribute based on response message) . :D a big lesson from Amichai again :D
@Jianju697 ай бұрын
I'm still catching up with the rest of the group, but your comment is helpful. So, once we have the application working the way we like, is the .http-file still used in the application (to make HTTP requests,) or is it only for use in the IDE?
@exomo17 ай бұрын
@@Jianju69 The http files are just for testing and documentation. The application code does not use those files.
@soverain7 ай бұрын
The fact that environment variables are stored in a vs code workspace config file seems like a big no to me. On my team everyone has its own config file stuffed with plugins configurations.
@bogdanb9047 ай бұрын
Yup. That's a bit of bs. Also would force everyone into using VS Code.
@soverain7 ай бұрын
@@bogdanb904 I think env variables are handled differently on other IDES.
@dweblinveltz50357 ай бұрын
Also not a fan. There should be some .http specific env file similar to Node's dotenv.
@sergenalishiwa90977 ай бұрын
Postman supports GRPC and more.
@congjuny7 ай бұрын
does it do prescript, test, or read variable values from a file etc?
@wildmusical7 ай бұрын
Insomnia Rest is also a good client. It is Open source (Apache 2.0), supports GraphQL, REST, WebSockets, SSE and gRPC. You can create test suites, load and edit OpenAPI. It is also extensible with plugins. One problem is that the official release now forces you to login (like Postman). However, you can use an older release (up to 2023.5.8) or just use a fork which cuts the login.
@orecruncher79307 ай бұрын
I find this "login trend" somewhat concerning. If I am working on an API that is internal to my organization, the last thing I need is to provide the definition for said API to a 3rd party.
@Amr-Ibrahim-AI7 ай бұрын
Thank you for the comprehensive video. What's the software you use to add annotations to the video? I mean those neon-like rectangles and arrows.
@quocthong328Ай бұрын
how can I upload file with this extension?
@SouravBanik907 ай бұрын
Can we even use this for writing tests? What’s the point of this? Just to send one request? What if we have to generate the tokens every time for sending a request? How to do that? How to store a value from a request to be sent in another?
@MacheteBang7 ай бұрын
More of a vscode question, but is it possible to have multiple workspace settings files? I.e. i want one that has all the "public" settings and a second that has user / password in gitignore (but not in the "user" settings as they are shared across many projects.)
@mauricioaviles69147 ай бұрын
Have you used hurl? How does it compare to http files?
@djchen17 ай бұрын
Does anybody still use curl? I find it handy while working on barebone VMs. Also if you installed tools like proxyman it can trace all http/rest requests made in your system
@ricardoribeiro45607 ай бұрын
In the case of authentication, is it possible to automatically fill in the token variable when sending the request?
@amantinband7 ай бұрын
Yes, check this out: github.com/Huachao/vscode-restclient?tab=readme-ov-file#request-variables
@JordanHumbertodeSouza7 ай бұрын
What about when you need to get the bearer token from request a response header? is there a way to update the env variable on the fly?
@ehsangoodarzi21236 ай бұрын
hi Amichai, thanks for great content. just an idea to make it better , it took for times to understand why my visual Studio doesn't recognize .HTTP like yours. and then I installed REST Client extension. now it works. edit: you explained it ,sorry my fault😂
@hoki82963 ай бұрын
Wow, It will be really helpful for me. RIP postman.
@joseluiseiguren78277 ай бұрын
How do you overwrite the token env variable from a login post request? So you don't have to paste the token manually in the env variables file Thanks
@shomari1697 ай бұрын
Did you vscode or vs in your coursed please?
@Vietnamkid19937 ай бұрын
What do you do about storing tokens until they are needed? I use a secure workspace in postman.
@DrHeinzDoofenshmirtz7 ай бұрын
Please also get into how to avoid to write API keys and other secrets in the .http files.
@knkootbaoat67597 ай бұрын
i smashed that subscriber button and looking forward to the future vids
@gjermundification7 ай бұрын
Postman? There is cURL.
@Noceo7 ай бұрын
Would love to see a video on how/if this can be utilized in a test setting. E.g. calling a number of endpoint in the CD pipeline, after deployment.
@exomo17 ай бұрын
Nice video. It looks like VS Code or any other IDE that has support for http files can be used a replacement for postman in a lot of cases. Still it's missing some of the features that make Postman a great tool. What I need the most is authentication (e.g. OAuth2) and token management and a way for scripting requests (e.g. calculating a challenge/reponse value).
@马剑-i2q7 ай бұрын
how to stream response as I call OpenAI's API?
@arsenaghajanyan97417 ай бұрын
Is there a way to preserve cookies sent from api for the following requests?
@fedor_U6 ай бұрын
Things get ugly if you try to send encoded form data...
@ylazerson7 ай бұрын
great video - thanks!
@Mhblabla7 ай бұрын
This is inferior to OpenApi specs and generating clients from that
@DaminGamerMC7 ай бұрын
postman only wins because of testing calpabilities and scripts pre and post request
@QuintonCraig7 ай бұрын
ehh, probably more than that. Runner is pretty huge
@cliffwakefield7 ай бұрын
Is there a way to define environments and variables that works across IDE's?
@pilotboba7 ай бұрын
Probably not... since this is for the VS code plugin. But, would be nice it possible. That said, many times you don't want those stored with your source. Would be nice though it if supported .env files and or environment variables and then all IDS could adopt that.
@tidus937 ай бұрын
Are enviroment variables able to be handled the same way for .http files in Rider/VS aswell?
@devmarkmonster7 ай бұрын
The Jetbrains IDE also has a similar plugin, however they are not fully compatible with each other :-(.
@raykoone7 ай бұрын
Rider supports http files by default, no external plugin needed.
@devmarkmonster7 ай бұрын
@@raykoone yes but the http files are not 100% compatible
@cocacola75357 ай бұрын
But how can we upload file with http files?
@Dough2967 ай бұрын
Nice share ! Is there a way to create a auth.http file so it retrieves the token + stores it in a workspace variable ? This way we should not need to manage tokens by hand.
@AslamNazeerShaikh7 ай бұрын
Great thanks ❤🎉
@shayvt7 ай бұрын
Another good one! :) Thank you Amichai
@artiefischel25797 ай бұрын
Thanks. I never could figure out Postman.
@KevinLyda7 ай бұрын
Define an OpenAPI document. Use those tools to test the API, generate the server and client, verify requests and responses, etc.
@xBodro7 ай бұрын
Cool but not even close to what postman offers out of the box.
@MadanaGopalVankaraboina7 ай бұрын
@amantinband please make a play list for rest api you are teaching perfectly like beginner to masterrest api's. if not possiblle please suggest a one rest api tutorial to become master. Thank you
@egozMaster7 ай бұрын
i dont want create files just for make request
@aaartist_yt7 ай бұрын
I use this extensions for a while (~2-3 years) now. This way to do and organize the requests is still highly underrated. 👍 PS: How do you to this colored marks in your screencast? Is this a post-production or do you draw them live?
@amantinband7 ай бұрын
Live - it’s called presentify
@tchial07 ай бұрын
Hahaha! The postman team will hate this video.
@amantinband7 ай бұрын
To be fair postman is an excellent product with a ton of features, but I completely replaced it with http files over the past few years
@avatar2012067 ай бұрын
What about writing to the env. after a request has been send?
@jeffersantosss7 ай бұрын
@@avatar201206 great question
@matthewbramer76547 ай бұрын
@@amantinbandHow can you use rest client without storing an API key in settings.json?
@FarukLuki1117 ай бұрын
Postman was SO MUCH MORE features than what you show here! So far away from „rip postman“!
@Alestorm247 ай бұрын
It's basically using postman with a lot of extra steps, I think i don't need another thing to manage😅, but maybe I will have to learn this at some point of my carreer 😐
@MiklosGalicz9 күн бұрын
hmm... featuring a VSCode extension without referencing the actual extension...
@chrisnuk7 ай бұрын
It needs NTLM authorisation added
@fraserm71637 ай бұрын
Hopefully this will support NTLM authentication in the future.
@dealerpriest7 ай бұрын
Superflous use of the phrase "go ahead and..." has popped up all over youtube. I wonder what's the reason behind this?
@7th_CAV_Trooper7 ай бұрын
This is slick.
@MrYerak57 ай бұрын
Dont forget to ignore files in git with sensative data
@Eirenarch7 ай бұрын
I always enjoy when people who advocate for feature folders forget about them when faced with non .cs file extension :) Services folder - bad, entities folder - bad, requests folder - totally different, this one is good :)
@DrHeinzDoofenshmirtz7 ай бұрын
I just watched the intro, and I am thinking: Please convert me!
@bnssoftware32927 ай бұрын
Very cool!
@MaThMaTa10007 ай бұрын
Too much of a hassle to work with GraphQL tho
@gluckchaim7 ай бұрын
Great content
@zebraforceone7 ай бұрын
I use insomnia these days, it's quite good
@ruaha-x7 ай бұрын
That's cool, but I personally prefer postman because of all the functionalities it has.
@d47im5e7 ай бұрын
Nah, this one needs some work. For simple rest clients, I think IDEA's http client is better, In any project i can write http files, and i can write javascript code before and after each request that can do tests, set global variables and use them in other requests. But this extension seems good for this use case... Congrats and keep it up!
@QuintonCraig7 ай бұрын
Seems like way more work for no benefit other than to avoid postman. MS Edge has basic functionality, imports collections, etx. Probably more useful than this lol
@Fanatic177 ай бұрын
honestly insomnia is better for defining tokens and variables
@monterreymxisfun36277 ай бұрын
I still prefer the plain old Python requests library.
@amirdaraee7 ай бұрын
Dislike for the clickbait. postman is much more than just a tool for sending requests. Ability to write scripts to run before and after a request, creating collections, the cli, convenient ui and much more.
@Petrovich20497 ай бұрын
It’s such a slow and heavy app, costs another subscription too. Many features you listed can be easily replicated in vs code and I’d argue more convenient to use too. But personally I’m using Obsidian instead
@kukulis1007 ай бұрын
microsoft minion
@tommcmeekin17 ай бұрын
Hey, does anyone know why adding in an api key header works in vs but not in vsc: X-API-KEY: thisismyverysecurekey
@nanonukes7 ай бұрын
If the api parses your request in a case sensitive manner, you may encounter this behaviour. Rest client makes it all lowercase iirc.