These samples require SDK 10-preview.3
-
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.
-
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.