The New File Part of Every New .NET API

preview_player
Показать описание

Hello, everybody, I'm Nick, and in this video, I will introduce you to a brand new file type that will be part of every new .NET API from version 8 onwards and that's the .http (and .rest) file type.

Don't forget to comment, like and subscribe :)

Social Media:

#csharp #dotnet
Рекомендации по теме
Комментарии
Автор

I wonder how OAUTH2 will be handled - there is already quite the boilercode for having it up and running in swagger

NWessel
Автор

The environments thing is really what is holding our team back from using this in VS. Having variables declared in every file is a deal-breaker -- that's why we still use Postman. The scripted tests are also a key Postman feature. If Rider and VS could combine/standardize a bunch of this functionality, it would be awesome.

bryanllewis
Автор

I need to explore this a little bit more - I've used this in the past for simple requests but it would be nice to add there some logic for storing response in variable etc

adrian_franczak
Автор

I like Hurl (a language for Curl) for headless endpoint tests

_nikeee
Автор

I think the HTTP file is a nice gimmic. It would be much better if MS would add a C# source code generator in the new endpoint explorer. Then we can use C# will all it's features and do not need to reinvent the wheel with some new file format, macros, variable syntax. This could even be extended to generate unit tests etc.

nothingisreal
Автор

Is Jetbrains approach supported by VSCode? If not - it's a non-starter.

MagicNumberArg
Автор

Thats going to make collaborating cross-IDE with Git an absolute mess... hopefully they figure out some common ground.

ethanrushbrook
Автор

Isn't it like redundant when you have proper OpenAPI definition? I feel like with adding this file you need to maintain two different descriptions of same API design. You can argue that you don't want swagger at all and you will use only this, but then again: why create a new standard when there is already one which is well established and pretty complete?

proosee
Автор

I was just watching the Advanced developer tips and tricks in visual studio session from Build and was just hoping to see a video you made about it

Kevmoens
Автор

We can't really talk about "two major IDEs" (being VS and Rider) when quite a lot of C# developers use VS Code.
I like that Microsoft will try to standardize the http file syntax, it's definitely the correct move that I'd expect from them.

lordmetzgermeister
Автор

Using the endpoint explorer it fails to make a valid GET request for an endpoint using an enum as a parameter. Do you know how I could add enums?
endpoint would be similar to .../api/products/type/{enum}, the http file has no idea about the enums and I was not able to add a variable referring to the enum

Fran-bovg
Автор

I still don't understand how this is better than Postman / Insomnia. What's the need here? What gap are http files trying to fill?

simonm
Автор

Can we reference another .http file at top of working .http file, so that we don't have to repeat variables, in case we have separate .http file for each api method? Also how we can configure environments in vs code and one of the environment variable after response is returned from api call?

microtech
Автор

Are the VS code and Visual studio file formats the same? Was not clear in the video

miguelcrpinto
Автор

Is there any benefit of creating projects/solutions by CLI? I dont get it why anyone would do this while using IDE

jurijowsienko
Автор

I'm against the inclusion simply because there isn't an open standard for implementation i.e. if there was, the JetBrains drama could have been avoided. Also the feature doesn't seem to add anything new to the table that's worth all the effort, seeing as we have Swagger/Postman/Insomnia etc... Just my humble opinion

samo
Автор

I hope visual studio supports all the features that rider does so that I can replace postman and Newman for e2e testing in my release pipeline.

I’m wondering how this should interface with open api files.

Bliss
Автор

How can I get terminal Like this? @Nick Chapsas

hypetime
Автор

it would be awesome if it can convert to Postman collection for compatibility

MarusykRoman
Автор

i was looking on vs studio a way to use environment files like rider i hope that were implemented

magehernan
welcome to shbcf.ru