Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature dump of minimal APIs #57

Open
davidfowl opened this issue Sep 10, 2021 · 10 comments
Open

Feature dump of minimal APIs #57

davidfowl opened this issue Sep 10, 2021 · 10 comments

Comments

@davidfowl
Copy link
Collaborator

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

@davidfowl
Copy link
Collaborator Author

@LadyNaggaga
Copy link
Contributor

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

image

@LadyNaggaga
Copy link
Contributor

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
Copy link
Collaborator Author

Yes I'll remove that part

@davidfowl
Copy link
Collaborator Author

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
Copy link
Contributor

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
Copy link
Collaborator Author

davidfowl commented Sep 12, 2021

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
Copy link
Contributor

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

@davidfowl
Copy link
Collaborator Author

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
Copy link
Contributor

Cool it looks like we are on the same page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants