Minimal-APIs / minimal-apis.github.io

Tutorials and samples for ASP.NET Core Minimal APIs
https://minimal-apis.github.io/
MIT License
65 stars 19 forks source link

Feature dump of minimal APIs #57

Open davidfowl opened 3 years ago

davidfowl commented 3 years ago

https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06158727

davidfowl commented 3 years ago

@LadyNaggaga I made a few more changes and added a TOC:

https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06158727#minimal-apis-at-a-glance

LadyNaggaga commented 3 years ago

I will add the content update 👍🏿 . We may not need a TOC because it's auto populated in the side menu.

image

LadyNaggaga commented 3 years ago

This listens to port http://localhost:5000 and https://localhost:5001 by default.

Should this section be updated as well since, when some creates an application today, they will get a random port ?

davidfowl commented 3 years ago

Yes I'll remove that part

davidfowl commented 3 years ago

I will add the content update 👍🏿 . We may not need a TOC because it's auto populated in the side menu.

I would put WebApplication and WebApplicationBuilder under Application.

LadyNaggaga commented 3 years ago

https://gist.github.com/davidfowl/ff1addd02d239d2d26f4648a06158727#differences-with-aspnet-core-mvc

I like this section it should be a detailed blog post. How do you feel about title being Minimal APIs Vs MVC? The thing about this section is we may need to create section the highlights when you should use minimal or MVC. Which is something we are trying to avoid; I thought. Thoughts?

Differences with ASP.NET Core MVC

  • No support for filters. i.e. IAsyncAuthorizationFilter, IAsyncActionFilter, IAsyncExceptionFilter, IAsyncResultFilter, IAsyncResourceFilter
  • No support for model binding. i.e. IModelBinderProvider, IModelBinder. Support can be added with a custom binding shim.
    • No support for binding from forms. This includes binding IFormFile (this will be added in the future).
  • No built-in support for validation. i.e. IModelValidator
  • No support for application parts or the application model. There's no way to apply or build your own conventions.
  • No built-in view rendering support. We recommend using Razor Pages for rendering views.
  • No support for JsonPatch
  • No support for OData
  • No support for ApiVersioning, see this issue for more details.
davidfowl commented 3 years ago

I don't think this should be on this site but it should go into https://docs.asp.net. I also don't think it should be a blog post.

LadyNaggaga commented 3 years ago

Fair enough. My hesitation on this section is it's a lot of information that may take someone down a Google rabbit hole.

davidfowl commented 3 years ago

Fair enough. My hesitation on this section is it's a lot of information that may take someone down a Google rabbit hole.

Right, that's why it should be left out for this site and should only appear on docs.asp.net. That's where the existing .NET devs will go to find that information.

LadyNaggaga commented 3 years ago

Cool it looks like we are on the same page