Coding Shorts: .http files Can Make Writing .NET APIs That Much Easier

preview_player
Показать описание
There are so many tools for executing HTTP requests for debugging of APIs, but I'd like to introduce you to a new one. The REST Client plugin for VSCode (and the same functionality in Visual Studio 2022 Preview 1 and later) both let you quickly just have a text file that contains requests. I like this approach as I can design my API and then have a punch list for API calls that I've implemented. Let me show you how it works.

You can hire me too! You can reach me at my new website:

00:00 Introduction
00:39 The Problem
01:32 .http Files
02:44 Multiple Requests
04:44 Using Variables
05:52 VSCode Plugin
06:30 Visual Studio Preview
07:13 Debugging Requests
08:27 Wrapping Up

The source code for this is at:

If you like this video, you might like other videos in my Instructional Videos:
Рекомендации по теме
Комментарии
Автор

These 'short' videos are great. I love you calm demeanor - so pleasant (and calming) to watch! Cheers.

jamesbest
Автор

Thank you Shawn. Learning a lot with these coding shorts. Please continue them.

rd_Century
Автор

Love your short videos Shawn.They're always very informative.

WilGarcia-kh
Автор

Could not agree more with many of the positive comments. Shawn is a special teacher and we are blessed to have him producing free content. Thank you, Shawn!

irvinwaldman
Автор

Super cool. Thanks for these shots. They are very Informative.

JosephRuhundwa
Автор

This is amazing! The big deal is that these little 'test' files now get checked into your source and are available to other developers of the project. You could build a simple framework around these integration type tests.

larrye
Автор

Thank you for this content, it can be very useful

Bck
Автор

I do not know if it works like that but I think it would be awesome to right click on a .rest file and execute all requests in a file one by one.

andtkach
Автор

Will it handle JWTs…streamlining that for dev would be helpful

watchchat
Автор

Can we set a variable in one http file and then read that in another http file. Basically a global value

timmark