projects/net10/README.md
These samples require SDK 10.0.100
This is a sample code on how you can build an ASP.NET Core application using the new .NET 10 project-less dotnet run xxx.cs functionality.
This sample shows how to populate OpenAPI document with metadata from XML doc comments on methods, class, and members.
This sample shows how to generate OpenAPI documentation YAML format.
This sample shows how to populate OpenAPI document responses information with XML doc comment response element.
This sample shows how to populate OpenAPI document response 200 information with XML doc comment returns element.
redirect-http-result-is-local-url
This sample how to use RedirectHttpResult.IsLocalUrl to detect if a URL is local.
Use Results.ServerSentEvents to return Server Side Events on Minimal API.
Use Results.ServerSentEvents to return Server Side Events with Event Type on Minimal API.
Use Results.ServerSentEvents to return Server Side Events with mixed events on Minimal API.
This example shows how the to validate complex object bound with the route via [AsParameter] attribute.
This time we implement IValidatableObject to implement custom validation logic.
This is a demo that show how built-in validation works in [FromForm] scenario but it can't really be used in a straight HTML serving scenario because right now there is no way to obtain the validation results.