.NET 8 - HTTP Files
Вставка
- Опубліковано 25 січ 2024
- Played-out with Postman? Sick of Swagger? Test your APIs with an HTTP file.
Source code available at: github.com/JasperKent/HTTP-Files
Topics include:
- Using .http files in a new project.
- Analysing APIs with the endpoint explorer.
- Generating .http files from a Controller-based or minimal API.
- Sending requests from a .http files.
- Using variables in request URLs.
- Using variables for the request content.
- GET, POST, PUT and DELETE requests. - Наука та технологія
Which do you prefer, Postman or Swagger, or will you be switching to using HTTP files?
Source code available at: github.com/JasperKent/HTTP-Files
Remember to subscribe at ua-cam.com/channels/qWQzlUDdllnLmtgfSgYTCA.html
And if you liked the video, click the 👍.
Github shows page not found
Insomnia my favourite ❤
I alternate between both Swagger and http file. The http file allows you to work within the IDE and is much easier when iterating the development of an endpoint or when testing requires the use of one or more other end points before examining the behavior of the subject end point. Whereas Swagger is useful for reviewing the features of the API overall and examining the shape of the schema.
Like you demonstrated its common to start with swagger to play around with API then copy and paste any problem parameters and content to the http file to work on the further dev.
Спасибо за видеоролик. Наткнулся на ваш канал совсем недавно, сейчас занимаюсь изучением C# и нахожусь на этапе изучения Делегатов, Событий и ваши видео ролики очень сильно помогают. Очень благодарен вам за ваш контент.
Спасибо.
Thank you sir for sharing.
Many thanks for the good (as usual) video. Is it possible to make a video about "Mutex", "Semaphore" and "lock". And how to use them sync and async scenarios. Thanks. :)
I'll put them on the list.
Mr. Kent, I think you are a very interesting person. May I ask, how can you be so productive? You have studied physics, you program very well, you have written books, and I guess you are making music too? I wish I could be as productive as you, do you have any secrets? :)
No secret. I just bored quickly.
@@CodingTutorialsAreGo ahah great reply! XD
Hello. Would it be reasonable to integrate http files into unit testing frameworks?
I can't really see how, since the results still have to be read visually.
Many thanks❤ can we pass the token from the login response to the next request? We can set token to environment variable in Postman
The way I'd do it would be to put the token in a variable, then use the variable in the authentication header for the request. Then you just have to cut and paste the token value from the login response to the variable.
@@CodingTutorialsAreGo thank you for your response but I think it would be better if we could send the login request and then store it in a variable for the later request (similar to Postman)
good👍