You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This article explains how to create responses for minimal API endpoints in ASP.NET Core. Minimal APIs provide several ways to return data and HTTP status codes.
16
16
17
-
[!INCLUDE[](~/includes/api-endpoint-auth.md)]
18
-
19
17
:::moniker range=">= aspnetcore-10.0"
20
18
21
19
Minimal endpoints support the following types of return values:
@@ -24,6 +22,8 @@ Minimal endpoints support the following types of return values:
24
22
1.`T` (Any other type) - This includes `Task<T>` and `ValueTask<T>`.
25
23
1.`IResult` based - This includes `Task<IResult>` and `ValueTask<IResult>`.
0 commit comments