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
Copy file name to clipboardExpand all lines: aspnetcore/fundamentals/minimal-apis.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Provides an overview of Minimal APIs in ASP.NET Core
5
5
ms.author: wpickett
6
6
content_well_notification: AI-contribution
7
7
monikerRange: '>= aspnetcore-6.0'
8
-
ms.date: 12/05/2025
8
+
ms.date: 03/17/2026
9
9
uid: fundamentals/minimal-apis
10
10
ai-usage: ai-assisted
11
11
---
@@ -25,10 +25,7 @@ Editorial note: This file is a quick reference summary:
25
25
26
26
:::moniker range=">= aspnetcore-10.0"
27
27
28
-
This document:
29
-
30
-
* Provides a quick reference for Minimal APIs.
31
-
* Is intended for experienced developers. For an introduction, see <xref:tutorials/min-web-api>.
28
+
This document provides a quick reference for Minimal APIs. For a guided introduction, see <xref:tutorials/min-web-api>.
32
29
33
30
The Minimal APIs consist of:
34
31
@@ -50,7 +47,7 @@ The following table lists some of the middleware frequently used with Minimal AP
50
47
|[Forwarded Headers](xref:fundamentals/middleware/index#forwarded-headers-middleware-order)| Forwards proxied headers onto the current request. |<xref:Microsoft.AspNetCore.Builder.ForwardedHeadersExtensions.UseForwardedHeaders%2A>|
51
48
|[HTTPS Redirection](xref:security/enforcing-ssl)| Redirects all HTTP requests to HTTPS. |<xref:Microsoft.AspNetCore.Builder.HttpsPolicyBuilderExtensions.UseHttpsRedirection%2A>|
52
49
|[HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index#middleware-order)| Security enhancement middleware that adds a special response header. |<xref:Microsoft.AspNetCore.Builder.HstsBuilderExtensions.UseHsts%2A>|
53
-
|[Request Logging](xref:fundamentals/logging/index)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
50
+
|[Request Logging](xref:fundamentals/http-logging/index)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
54
51
|[Request Timeouts](xref:performance/timeouts)| Provides support for configuring request timeouts, global default and per endpoint. |`UseRequestTimeouts`|
55
52
|[W3C Request Logging](https://www.w3.org/TR/WD-logfile.html)| Provides support for logging HTTP requests and responses in the [W3C format](https://www.w3.org/TR/WD-logfile.html). |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseW3CLogging%2A>|
56
53
|[Response Caching](xref:performance/caching/middleware)| Provides support for caching responses. |<xref:Microsoft.AspNetCore.Builder.ResponseCachingExtensions.UseResponseCaching%2A>|
Copy file name to clipboardExpand all lines: aspnetcore/fundamentals/minimal-apis/includes/minimal-apis6.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,6 @@
1
1
:::moniker range="= aspnetcore-6.0"
2
2
3
-
This document:
4
-
5
-
* Provides a quick reference for Minimal APIs.
6
-
* Is intended for experienced developers. For an introduction, see <xref:tutorials/min-web-api>
3
+
This document provides a quick reference for Minimal APIs. For a guided introduction, see <xref:tutorials/min-web-api>.
7
4
8
5
The Minimal APIs consist of:
9
6
@@ -278,7 +275,7 @@ The following table lists some of the middleware frequently used with Minimal AP
278
275
|[Forwarded Headers](xref:fundamentals/middleware/index?view=aspnetcore-6.0#forwarded-headers-middleware-order)| Forwards proxied headers onto the current request. |<xref:Microsoft.AspNetCore.Builder.ForwardedHeadersExtensions.UseForwardedHeaders%2A>|
279
276
|[HTTPS Redirection](xref:security/enforcing-ssl?view=aspnetcore-6.0)| Redirects all HTTP requests to HTTPS. |<xref:Microsoft.AspNetCore.Builder.HttpsPolicyBuilderExtensions.UseHttpsRedirection%2A>|
280
277
|[HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index?view=aspnetcore-6.0#middleware-order)| Security enhancement middleware that adds a special response header. |<xref:Microsoft.AspNetCore.Builder.HstsBuilderExtensions.UseHsts%2A>|
281
-
|[Request Logging](xref:fundamentals/logging/index?view=aspnetcore-6.0)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
278
+
|[Request Logging](xref:fundamentals/http-logging/index)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
282
279
|[W3C Request Logging](https://www.w3.org/TR/WD-logfile.html)| Provides support for logging HTTP requests and responses in the [W3C format](https://www.w3.org/TR/WD-logfile.html). |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseW3CLogging%2A>|
283
280
|[Response Caching](xref:performance/caching/middleware)| Provides support for caching responses. |<xref:Microsoft.AspNetCore.Builder.ResponseCachingExtensions.UseResponseCaching%2A>|
284
281
|[Response Compression](xref:performance/response-compression)| Provides support for compressing responses. |<xref:Microsoft.AspNetCore.Builder.ResponseCompressionBuilderExtensions.UseResponseCompression%2A>|
Copy file name to clipboardExpand all lines: aspnetcore/fundamentals/minimal-apis/includes/minimal-apis7.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,6 @@
1
1
:::moniker range="= aspnetcore-7.0"
2
2
3
-
This document:
4
-
5
-
* Provides a quick reference for Minimal APIs.
6
-
* Is intended for experienced developers. For an introduction, see <xref:tutorials/min-web-api>
3
+
This document provides a quick reference for Minimal APIs. For a guided introduction, see <xref:tutorials/min-web-api>.
7
4
8
5
The Minimal APIs consist of:
9
6
@@ -25,7 +22,7 @@ The following table lists some of the middleware frequently used with Minimal AP
25
22
|[Forwarded Headers](xref:fundamentals/middleware/index?view=aspnetcore-6.0#forwarded-headers-middleware-order)| Forwards proxied headers onto the current request. |<xref:Microsoft.AspNetCore.Builder.ForwardedHeadersExtensions.UseForwardedHeaders%2A>|
26
23
|[HTTPS Redirection](xref:security/enforcing-ssl?view=aspnetcore-6.0)| Redirects all HTTP requests to HTTPS. |<xref:Microsoft.AspNetCore.Builder.HttpsPolicyBuilderExtensions.UseHttpsRedirection%2A>|
27
24
|[HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index?view=aspnetcore-6.0#middleware-order)| Security enhancement middleware that adds a special response header. |<xref:Microsoft.AspNetCore.Builder.HstsBuilderExtensions.UseHsts%2A>|
28
-
|[Request Logging](xref:fundamentals/logging/index?view=aspnetcore-6.0)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
25
+
|[Request Logging](xref:fundamentals/http-logging/index)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
29
26
|[Request Timeouts](xref:performance/timeouts)| Provides support for configuring request timeouts, global default and per endpoint. |`UseRequestTimeouts`|
30
27
|[W3C Request Logging](https://www.w3.org/TR/WD-logfile.html)| Provides support for logging HTTP requests and responses in the [W3C format](https://www.w3.org/TR/WD-logfile.html). |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseW3CLogging%2A>|
31
28
|[Response Caching](xref:performance/caching/middleware)| Provides support for caching responses. |<xref:Microsoft.AspNetCore.Builder.ResponseCachingExtensions.UseResponseCaching%2A>|
@@ -38,7 +35,7 @@ The following sections cover request handling: routing, parameter binding, and r
38
35
39
36
## Routing
40
37
41
-
A configured `WebApplication` supports `Map{Verb}` and <xref:Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.MapMethods%2A> where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put` or `Delete`:
38
+
A configured `WebApplication` supports `Map{Verb}` and <xref:Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.MapMethods%2A> where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put`, or `Delete`:
Copy file name to clipboardExpand all lines: aspnetcore/fundamentals/minimal-apis/includes/minimal-apis8.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,6 @@
1
1
:::moniker range="= aspnetcore-8.0"
2
2
3
-
This document:
4
-
5
-
* Provides a quick reference for Minimal APIs.
6
-
* Is intended for experienced developers. For an introduction, see <xref:tutorials/min-web-api>.
3
+
This document provides a quick reference for Minimal APIs. For a guided introduction, see <xref:tutorials/min-web-api>.
7
4
8
5
The Minimal APIs consist of:
9
6
@@ -25,7 +22,7 @@ The following table lists some of the middleware frequently used with Minimal AP
25
22
|[Forwarded Headers](xref:fundamentals/middleware/index?view=aspnetcore-6.0#forwarded-headers-middleware-order)| Forwards proxied headers onto the current request. |<xref:Microsoft.AspNetCore.Builder.ForwardedHeadersExtensions.UseForwardedHeaders%2A>|
26
23
|[HTTPS Redirection](xref:security/enforcing-ssl?view=aspnetcore-6.0)| Redirects all HTTP requests to HTTPS. |<xref:Microsoft.AspNetCore.Builder.HttpsPolicyBuilderExtensions.UseHttpsRedirection%2A>|
27
24
|[HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index?view=aspnetcore-6.0#middleware-order)| Security enhancement middleware that adds a special response header. |<xref:Microsoft.AspNetCore.Builder.HstsBuilderExtensions.UseHsts%2A>|
28
-
|[Request Logging](xref:fundamentals/logging/index?view=aspnetcore-6.0)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
25
+
|[Request Logging](xref:fundamentals/http-logging/index)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
29
26
|[Request Timeouts](xref:performance/timeouts)| Provides support for configuring request timeouts, global default and per endpoint. |`UseRequestTimeouts`|
30
27
|[W3C Request Logging](https://www.w3.org/TR/WD-logfile.html)| Provides support for logging HTTP requests and responses in the [W3C format](https://www.w3.org/TR/WD-logfile.html). |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseW3CLogging%2A>|
31
28
|[Response Caching](xref:performance/caching/middleware)| Provides support for caching responses. |<xref:Microsoft.AspNetCore.Builder.ResponseCachingExtensions.UseResponseCaching%2A>|
@@ -38,7 +35,7 @@ The following sections cover request handling: routing, parameter binding, and r
38
35
39
36
## Routing
40
37
41
-
A configured `WebApplication` supports `Map{Verb}` and <xref:Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.MapMethods%2A> where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put` or `Delete`:
38
+
A configured `WebApplication` supports `Map{Verb}` and <xref:Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.MapMethods%2A> where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put`, or `Delete`:
Copy file name to clipboardExpand all lines: aspnetcore/fundamentals/minimal-apis/includes/minimal-apis9.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,6 @@
1
1
:::moniker range="= aspnetcore-9.0"
2
2
3
-
This document:
4
-
5
-
* Provides a quick reference for Minimal APIs.
6
-
* Is intended for experienced developers. For an introduction, see <xref:tutorials/min-web-api>.
3
+
This document provides a quick reference for Minimal APIs. For a guided introduction, see <xref:tutorials/min-web-api>.
7
4
8
5
The Minimal APIs consist of:
9
6
@@ -25,7 +22,7 @@ The following table lists some of the middleware frequently used with Minimal AP
25
22
|[Forwarded Headers](xref:fundamentals/middleware/index?view=aspnetcore-6.0#forwarded-headers-middleware-order)| Forwards proxied headers onto the current request. |<xref:Microsoft.AspNetCore.Builder.ForwardedHeadersExtensions.UseForwardedHeaders%2A>|
26
23
|[HTTPS Redirection](xref:security/enforcing-ssl?view=aspnetcore-6.0)| Redirects all HTTP requests to HTTPS. |<xref:Microsoft.AspNetCore.Builder.HttpsPolicyBuilderExtensions.UseHttpsRedirection%2A>|
27
24
|[HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index?view=aspnetcore-6.0#middleware-order)| Security enhancement middleware that adds a special response header. |<xref:Microsoft.AspNetCore.Builder.HstsBuilderExtensions.UseHsts%2A>|
28
-
|[Request Logging](xref:fundamentals/logging/index?view=aspnetcore-6.0)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
25
+
|[Request Logging](xref:fundamentals/http-logging/index)| Provides support for logging HTTP requests and responses. |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseHttpLogging%2A>|
29
26
|[Request Timeouts](xref:performance/timeouts)| Provides support for configuring request timeouts, global default and per endpoint. |`UseRequestTimeouts`|
30
27
|[W3C Request Logging](https://www.w3.org/TR/WD-logfile.html)| Provides support for logging HTTP requests and responses in the [W3C format](https://www.w3.org/TR/WD-logfile.html). |<xref:Microsoft.AspNetCore.Builder.HttpLoggingBuilderExtensions.UseW3CLogging%2A>|
31
28
|[Response Caching](xref:performance/caching/middleware)| Provides support for caching responses. |<xref:Microsoft.AspNetCore.Builder.ResponseCachingExtensions.UseResponseCaching%2A>|
@@ -38,7 +35,7 @@ The following sections cover request handling: routing, parameter binding, and r
38
35
39
36
## Routing
40
37
41
-
A configured `WebApplication` supports `Map{Verb}` and <xref:Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.MapMethods%2A> where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put` or `Delete`:
38
+
A configured `WebApplication` supports `Map{Verb}` and <xref:Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.MapMethods%2A> where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put`, or `Delete`:
0 commit comments