Faster API Development in Visual Studio is Here! Say Hello to .http/.rest Files!

  Рет қаралды 52,528

James Montemagno

James Montemagno

Күн бұрын

Пікірлер: 83
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Combined with Dev Tunnels (kzbin.info/www/bejne/hIGtmaWcqdCkm8k) your API development is super charged! For more information on .http files checkout the blog: aka.ms/vs/httpfile and also the VS Code extension: github.com/Huachao/vscode-restclient
@grumpydeveloper69
@grumpydeveloper69 Жыл бұрын
What's missing in this version is what the VS Code plugin RestClient does support and that is using returnvalues from other calls. That is a very handy feature in returning tockens to a variable that you can use in subsequent calls. No more pasting security tokens to variables :-)
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Oh that would be nice!
@sayedha
@sayedha Жыл бұрын
We are working to add support for those scenarios.
@Goozales
@Goozales Жыл бұрын
I use Postman a lot, but it looks like it will be very useful to me in some situations. Thank you for introducing :)
@IRgEEK
@IRgEEK Жыл бұрын
Same
@queenstownswords
@queenstownswords Жыл бұрын
Hey James. I see the value in this. However, we need to think of the 'hand-off' to the QA team and the transition from testing in dev to regression testing. Postman has a value point in that you can hand a collection from dev to QA. I could see a similar workflow where the .rest file is handed to QA to build automated tests from. What would be a great next step would be a way to wrap the .rest file in such a way that you can use xUnit (or a different test framework) to streamline the test automation development.
@fayazvar3948
@fayazvar3948 Жыл бұрын
You know we can do this in Postman, but if we have 30 APIs and use Postman for all those APIs to test, we many times lose our test data. I hate postman when there are 100's of tabs. This is a fantastic feature. I wish microsoft has done this 5 years back.
@larsthomasdenstad9082
@larsthomasdenstad9082 Жыл бұрын
Rider and VS Code has had this feature for a while. I prefer these to, say, Postman, because it is plain text and easy to version in Git. Also, Swagger is not great for testing an API, in my opinion, because it will actively try to disallow you to send invalid requests. They are actively doing something to make the interface worse. This looks like a good implementation of it. I hope this approach gets more traction.
@JoshuaKersey
@JoshuaKersey Жыл бұрын
wow and I thought the devtunnels was the best new feature. now i dunno which is better. wow. thanks for showing this! This feature seems to have been rather quiet, but this is amazing! thanks for putting the video together and doing an excellent and easy to understand demo of this.
@LeonardHarrisLH
@LeonardHarrisLH Жыл бұрын
Very cool James! The only thing im normally struggling with these days is keeping up with all these amazing tools!! 😅
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Me too! Glad you enjoyed the video and I’ll be making more soon!
@projectrebuilds2549
@projectrebuilds2549 Жыл бұрын
Thanks James, this is an awesome feature. I will start using this to debug and test my API's.
@khealer
@khealer Жыл бұрын
WebApplicationFactory can be used to achieve serious Api tests inside Visual Studio. This solution fits the straightforward stuff (actual quick testing) but if you need to simulate authentication and complex usage of the Api... WebApplicationFactory is the way to go.
@bizmarinainfo1808
@bizmarinainfo1808 Жыл бұрын
What is WebApplicationFactory, can you please explain it? Thanks
@khealer
@khealer Жыл бұрын
@@bizmarinainfo1808 Google it. Can't post links here.
@rikudouensof
@rikudouensof Жыл бұрын
This is great especially if you don't want to use postman or swagger.
@James5976
@James5976 Жыл бұрын
I like having the power of powershell for my REST testing. More than just variables...
@elcurros
@elcurros Жыл бұрын
Awesome, the same "logic" as the Visual Studio Code pluggin! :D
@sayedha
@sayedha Жыл бұрын
Yes, we took inspiration from that great plugin. We are working to add more support for the syntax that it supports.
@indianapapi
@indianapapi Жыл бұрын
Pretty cool and easy way to quickly test API. I like it!
@williambeckett4295
@williambeckett4295 Жыл бұрын
This is amazing, thank you for sharing!
@esmaelmohamed8209
@esmaelmohamed8209 Жыл бұрын
Cool! James you mean no need Postman?
@kobibr9362
@kobibr9362 Жыл бұрын
These have been in IntelliJ for a long time. I thought I would use them, touched them the first day, got exited, forgot about them.
@ronicard
@ronicard Жыл бұрын
Wow. That is a gamechanger indeed.
@euler-kb161
@euler-kb161 Жыл бұрын
Pretty cool feature but I think PowerShell is pretty much underestimated in terms of invoking rest api's with complex inputs and response handling as well as JSON/CSV extraction and manipulation
@oliver-münzberg
@oliver-münzberg Жыл бұрын
I know this feature for a long time ... from VS Code :o)
@rdmon746
@rdmon746 Жыл бұрын
Yep, same. REST client extension
@caseyspaulding
@caseyspaulding Жыл бұрын
🙌🙌
@Brendan2Alexander
@Brendan2Alexander Жыл бұрын
I am posting a beer to u as I type. Awesome James thank u!
@sigma_z
@sigma_z Жыл бұрын
Can we get the bearer token from the JSON response and store it into a variable for subsequent requests?
@sayedha
@sayedha Жыл бұрын
We don't have that support today, but it is on the backlog.
@sulmarpl
@sulmarpl Жыл бұрын
Visual Studio is chasing Rider :) How can I set the host variable depending on the environment configuration (dev1, dev2) like in Rider? I'd like to avoid manual changes.
@sayedha
@sayedha Жыл бұрын
I'm working on a proposal to support env files, nothing to share yet, but it's on my radar! I want to include support for secrets in a secure fashion as well.
@vldmatos
@vldmatos Жыл бұрын
awesome feature!!!
@esmaelmohamed8209
@esmaelmohamed8209 Жыл бұрын
Which video is the Command line tool you was explained?
@bakes82
@bakes82 Жыл бұрын
This has been in rider for a while also.
@jd31068
@jd31068 Жыл бұрын
Pretty incredible.
@anikdas7434
@anikdas7434 Жыл бұрын
Dyuam !!! Its so useful
@AthelstanEngland
@AthelstanEngland Жыл бұрын
Thank you.
@JamesMontemagno
@JamesMontemagno Жыл бұрын
You are very welcome
@williameisenman5538
@williameisenman5538 Жыл бұрын
Can you execute a Azure AD authorization followed by a Get (or other) query request?
@JamesMontemagno
@JamesMontemagno Жыл бұрын
It should do any get and you should be able to pass in auth headers and tokens as needed
@clearlyunwell
@clearlyunwell Жыл бұрын
That is cool.
@washaby2
@washaby2 Жыл бұрын
very cool
@h.jpouya4715
@h.jpouya4715 Жыл бұрын
@3:45 as c# developer, shouldn't we say sharp sign?
@dotnetdevni
@dotnetdevni Жыл бұрын
What is best practise for expected result its not good practise to save json file so what your recomend here.
@DavidGold-w8s
@DavidGold-w8s Жыл бұрын
How does this work well with refresh/auth tokens?
@ichilvers
@ichilvers Жыл бұрын
Why not use Postman for API testing and Robot Framework for web application testing. Both of which will work in CI/CD pipeline testing.
@persiabudi1555
@persiabudi1555 Жыл бұрын
pdf is very important on the printing process in any business but on Maui net there is no difference with xamarin, please help us how to print pdf
@efexzium
@efexzium Жыл бұрын
Nice 👍🏽 ❤
@erpepl
@erpepl Жыл бұрын
You are presenting a variable with @monkeyId which is pretty unnatural, but you have thought about extracting baseUrl...
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Oh absolutely! I had thought about that as well. Just showing examples :)
@adebisiolaoluwa2125
@adebisiolaoluwa2125 Жыл бұрын
How will you pass token in case of authorization and authentication
@JamesMontemagno
@JamesMontemagno Жыл бұрын
You can pass in the token in the header information. Similar to the json that I showed. The team is working on a bigger blog and docs on it as well. Checkout github.com/Huachao/vscode-restclient
@1chullaman
@1chullaman Жыл бұрын
it is valid with JWT token?
@sayedha
@sayedha Жыл бұрын
You can add the header that is needed. We are working on some ways to support secrets in a secure fashion, but we don't have anything to share here yet.
@amitkumdixit
@amitkumdixit Жыл бұрын
Don't see any added benefits. Postman thunderbird etc or for that matter Swagger is more convenient
@MrHeulendoch
@MrHeulendoch Жыл бұрын
I agree..
@JamesMontemagno
@JamesMontemagno Жыл бұрын
To me it is one less tool to install. Integrated into the IDE so nice on one screen. Also can check it into source control to easily share with team and community.
@mihajlolukic4820
@mihajlolukic4820 Жыл бұрын
Can someone help me, I would like to set one app icon and splash screen for Android and another for IOS because of the round Android icon the IOS one is too small and i had a lot of trouble just getting splash and icon to work, also video idea since I had so much trouble I'm guessing that I'm not the only one, make a whole video on how the svg icon and splash work in Maui, great content btw i just started learning api development so perfect timing James
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Use conditional compilation in your csproj like the supported versioning does
@ced888
@ced888 Жыл бұрын
Not yet available for VS Mac 😢
@phungn02
@phungn02 Жыл бұрын
Hey James, can you share the api project?
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Whoops~! Thought I did! github.com/jamesmontemagno/MonkeyApi
@138charlieB
@138charlieB Жыл бұрын
Is there a way to run pre-request scripts with this?
@sayedha
@sayedha Жыл бұрын
We are going to add a shortcut/context menu to re-run the last request.
@christianmonoke8110
@christianmonoke8110 Жыл бұрын
Where is your beard😁😁 I guess a project was the reason for it and the stress is gone 😅😅
@JamesMontemagno
@JamesMontemagno Жыл бұрын
Gets too itchy at some point and I shave it :)
@aktierportfolio1365
@aktierportfolio1365 11 ай бұрын
I don't get the green play button in my visual studio.
@JamesMontemagno
@JamesMontemagno 11 ай бұрын
In a recent update it is just above the api call to run it.
@DreamsAPI
@DreamsAPI Жыл бұрын
Start the rave techno music only
@jeffbarnard348
@jeffbarnard348 Жыл бұрын
OAuth?
@LOrealHardly
@LOrealHardly Жыл бұрын
What about JWT tokens?
@sayedha
@sayedha Жыл бұрын
You can add the header that is needed. We are working on some ways to support secrets in a secure fashion, but we don't have anything to share here yet.
@InsidiousDr9
@InsidiousDr9 Жыл бұрын
# = Octothorp
@TaoriUTS
@TaoriUTS Жыл бұрын
soon VS is gonna be 50% of mads plugins. haha
@dennycrane2938
@dennycrane2938 Жыл бұрын
Not ampersands -- octothorps
@eriknyk2k
@eriknyk2k Жыл бұрын
Not new dude, it was borrowed from Intellij IDEA, it exists many years ago on IDEA
@mrmuzeza113
@mrmuzeza113 Жыл бұрын
no more postman😅
@peterclaver9786
@peterclaver9786 Жыл бұрын
Hey James can you buy me a pc
@orhancanoguz4423
@orhancanoguz4423 Жыл бұрын
Probably , there should be a "3rd party solutions" easier than this...
@hendrykhoza4782
@hendrykhoza4782 Жыл бұрын
VIM is better
Explore, Test, & Debug API Endpoints in Visual Studio Faster Than Ever!
10:53
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 40 МЛН
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 8 МЛН
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,2 МЛН
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 2,9 МЛН
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,5 МЛН
.NET MAUI's Navigation for Beginners - Push, Pop, & Pass Objects
21:36
James Montemagno
Рет қаралды 67 М.
.NET Aspire
15:12
huzcodes
Рет қаралды 797
Using http Files in Visual Studio to Test and Document APIs
9:36
Deploy & Debug .NET MAUI Apps to iOS Devices in VS Code - Complete Guide
11:39
Rest API - Best Practices - Design
15:50
High-Performance Programming
Рет қаралды 110 М.
How Did I Not Know This TypeScript Trick Earlier??!
9:11
Josh tried coding
Рет қаралды 214 М.
Build Better Apps with .NET Aspire - Complete Beginner's Guide & Tutorial
1:12:47
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 40 МЛН