From ffcb03b0eff8ba528327baca71f12549c7f273fe Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Mar 2026 21:40:01 -0700 Subject: [PATCH] Fix Request Logging link in Minimal APIs middleware table (#36888) * Initial plan * Fix Request Logging link to point to HTTP Logging article across all versions Changes xref:fundamentals/logging/index to xref:fundamentals/http-logging/index in the Minimal APIs middleware table for versions 6.0-10.0. Also removes hardcoded ?view=aspnetcore-6.0 query parameter. Fixes #36884 Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com> * Apply suggestions from code review Minor fixes for missing periods and commas. Co-authored-by: Wade Pickett * Combine quick reference and introduction notes * Revise introduction for Minimal APIs reference Updated the introduction to clarify the purpose of the document and removed redundant bullet points. * Revise introduction for Minimal APIs reference Updated the introductory text for Minimal APIs documentation. * Refine introduction of Minimal APIs document Removed redundant points and clarified the document's purpose. * Update minimal-apis9.md * Revise Minimal APIs document introduction Updated the description of the Minimal APIs document to clarify its purpose and target audience. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com> Co-authored-by: Wade Pickett --- aspnetcore/fundamentals/minimal-apis.md | 9 +++------ .../fundamentals/minimal-apis/includes/minimal-apis6.md | 7 ++----- .../fundamentals/minimal-apis/includes/minimal-apis7.md | 9 +++------ .../fundamentals/minimal-apis/includes/minimal-apis8.md | 9 +++------ .../fundamentals/minimal-apis/includes/minimal-apis9.md | 9 +++------ 5 files changed, 14 insertions(+), 29 deletions(-) diff --git a/aspnetcore/fundamentals/minimal-apis.md b/aspnetcore/fundamentals/minimal-apis.md index d06d8f1b449d..c7e516f6433a 100644 --- a/aspnetcore/fundamentals/minimal-apis.md +++ b/aspnetcore/fundamentals/minimal-apis.md @@ -5,7 +5,7 @@ description: Provides an overview of Minimal APIs in ASP.NET Core ms.author: wpickett content_well_notification: AI-contribution monikerRange: '>= aspnetcore-6.0' -ms.date: 12/05/2025 +ms.date: 03/17/2026 uid: fundamentals/minimal-apis ai-usage: ai-assisted --- @@ -25,10 +25,7 @@ Editorial note: This file is a quick reference summary: :::moniker range=">= aspnetcore-10.0" -This document: - -* Provides a quick reference for Minimal APIs. -* Is intended for experienced developers. For an introduction, see . +This document provides a quick reference for Minimal APIs. For a guided introduction, see . The Minimal APIs consist of: @@ -50,7 +47,7 @@ The following table lists some of the middleware frequently used with Minimal AP | [Forwarded Headers](xref:fundamentals/middleware/index#forwarded-headers-middleware-order) | Forwards proxied headers onto the current request. | | | [HTTPS Redirection](xref:security/enforcing-ssl) | Redirects all HTTP requests to HTTPS. | | | [HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index#middleware-order) | Security enhancement middleware that adds a special response header. | | -| [Request Logging](xref:fundamentals/logging/index) | Provides support for logging HTTP requests and responses. | | +| [Request Logging](xref:fundamentals/http-logging/index) | Provides support for logging HTTP requests and responses. | | | [Request Timeouts](xref:performance/timeouts) | Provides support for configuring request timeouts, global default and per endpoint. | `UseRequestTimeouts` | | [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). | | | [Response Caching](xref:performance/caching/middleware) | Provides support for caching responses. | | diff --git a/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis6.md b/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis6.md index 5f9713820232..059731711457 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis6.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis6.md @@ -1,9 +1,6 @@ :::moniker range="= aspnetcore-6.0" -This document: - -* Provides a quick reference for Minimal APIs. -* Is intended for experienced developers. For an introduction, see +This document provides a quick reference for Minimal APIs. For a guided introduction, see . The Minimal APIs consist of: @@ -278,7 +275,7 @@ The following table lists some of the middleware frequently used with Minimal AP | [Forwarded Headers](xref:fundamentals/middleware/index?view=aspnetcore-6.0#forwarded-headers-middleware-order) | Forwards proxied headers onto the current request. | | | [HTTPS Redirection](xref:security/enforcing-ssl?view=aspnetcore-6.0) | Redirects all HTTP requests to HTTPS. | | | [HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index?view=aspnetcore-6.0#middleware-order) | Security enhancement middleware that adds a special response header. | | -| [Request Logging](xref:fundamentals/logging/index?view=aspnetcore-6.0) | Provides support for logging HTTP requests and responses. | | +| [Request Logging](xref:fundamentals/http-logging/index) | Provides support for logging HTTP requests and responses. | | | [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). | | | [Response Caching](xref:performance/caching/middleware) | Provides support for caching responses. | | | [Response Compression](xref:performance/response-compression) | Provides support for compressing responses. | | diff --git a/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis7.md b/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis7.md index 610abcd6b6c0..5560d250a273 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis7.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis7.md @@ -1,9 +1,6 @@ :::moniker range="= aspnetcore-7.0" -This document: - -* Provides a quick reference for Minimal APIs. -* Is intended for experienced developers. For an introduction, see +This document provides a quick reference for Minimal APIs. For a guided introduction, see . The Minimal APIs consist of: @@ -25,7 +22,7 @@ The following table lists some of the middleware frequently used with Minimal AP | [Forwarded Headers](xref:fundamentals/middleware/index?view=aspnetcore-6.0#forwarded-headers-middleware-order) | Forwards proxied headers onto the current request. | | | [HTTPS Redirection](xref:security/enforcing-ssl?view=aspnetcore-6.0) | Redirects all HTTP requests to HTTPS. | | | [HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index?view=aspnetcore-6.0#middleware-order) | Security enhancement middleware that adds a special response header. | | -| [Request Logging](xref:fundamentals/logging/index?view=aspnetcore-6.0) | Provides support for logging HTTP requests and responses. | | +| [Request Logging](xref:fundamentals/http-logging/index) | Provides support for logging HTTP requests and responses. | | | [Request Timeouts](xref:performance/timeouts) | Provides support for configuring request timeouts, global default and per endpoint. | `UseRequestTimeouts` | | [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). | | | [Response Caching](xref:performance/caching/middleware) | Provides support for caching responses. | | @@ -38,7 +35,7 @@ The following sections cover request handling: routing, parameter binding, and r ## Routing -A configured `WebApplication` supports `Map{Verb}` and where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put` or `Delete`: +A configured `WebApplication` supports `Map{Verb}` and where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put`, or `Delete`: [!code-csharp[](~/fundamentals/minimal-apis/7.0-samples/WebMinAPIs/Program.cs?name=snippet_r1)] diff --git a/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis8.md b/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis8.md index 9fec711135a0..3b339b93c2b2 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis8.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis8.md @@ -1,9 +1,6 @@ :::moniker range="= aspnetcore-8.0" -This document: - -* Provides a quick reference for Minimal APIs. -* Is intended for experienced developers. For an introduction, see . +This document provides a quick reference for Minimal APIs. For a guided introduction, see . The Minimal APIs consist of: @@ -25,7 +22,7 @@ The following table lists some of the middleware frequently used with Minimal AP | [Forwarded Headers](xref:fundamentals/middleware/index?view=aspnetcore-6.0#forwarded-headers-middleware-order) | Forwards proxied headers onto the current request. | | | [HTTPS Redirection](xref:security/enforcing-ssl?view=aspnetcore-6.0) | Redirects all HTTP requests to HTTPS. | | | [HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index?view=aspnetcore-6.0#middleware-order) | Security enhancement middleware that adds a special response header. | | -| [Request Logging](xref:fundamentals/logging/index?view=aspnetcore-6.0) | Provides support for logging HTTP requests and responses. | | +| [Request Logging](xref:fundamentals/http-logging/index) | Provides support for logging HTTP requests and responses. | | | [Request Timeouts](xref:performance/timeouts) | Provides support for configuring request timeouts, global default and per endpoint. | `UseRequestTimeouts` | | [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). | | | [Response Caching](xref:performance/caching/middleware) | Provides support for caching responses. | | @@ -38,7 +35,7 @@ The following sections cover request handling: routing, parameter binding, and r ## Routing -A configured `WebApplication` supports `Map{Verb}` and where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put` or `Delete`: +A configured `WebApplication` supports `Map{Verb}` and where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put`, or `Delete`: [!code-csharp[](~/fundamentals/minimal-apis/7.0-samples/WebMinAPIs/Program.cs?name=snippet_r1)] diff --git a/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis9.md b/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis9.md index df02103e293e..96a426f41ef1 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis9.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/minimal-apis9.md @@ -1,9 +1,6 @@ :::moniker range="= aspnetcore-9.0" -This document: - -* Provides a quick reference for Minimal APIs. -* Is intended for experienced developers. For an introduction, see . +This document provides a quick reference for Minimal APIs. For a guided introduction, see . The Minimal APIs consist of: @@ -25,7 +22,7 @@ The following table lists some of the middleware frequently used with Minimal AP | [Forwarded Headers](xref:fundamentals/middleware/index?view=aspnetcore-6.0#forwarded-headers-middleware-order) | Forwards proxied headers onto the current request. | | | [HTTPS Redirection](xref:security/enforcing-ssl?view=aspnetcore-6.0) | Redirects all HTTP requests to HTTPS. | | | [HTTP Strict Transport Security (HSTS)](xref:fundamentals/middleware/index?view=aspnetcore-6.0#middleware-order) | Security enhancement middleware that adds a special response header. | | -| [Request Logging](xref:fundamentals/logging/index?view=aspnetcore-6.0) | Provides support for logging HTTP requests and responses. | | +| [Request Logging](xref:fundamentals/http-logging/index) | Provides support for logging HTTP requests and responses. | | | [Request Timeouts](xref:performance/timeouts) | Provides support for configuring request timeouts, global default and per endpoint. | `UseRequestTimeouts` | | [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). | | | [Response Caching](xref:performance/caching/middleware) | Provides support for caching responses. | | @@ -38,7 +35,7 @@ The following sections cover request handling: routing, parameter binding, and r ## Routing -A configured `WebApplication` supports `Map{Verb}` and where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put` or `Delete`: +A configured `WebApplication` supports `Map{Verb}` and where `{Verb}` is a camel-cased HTTP method like `Get`, `Post`, `Put`, or `Delete`: [!code-csharp[](~/fundamentals/minimal-apis/7.0-samples/WebMinAPIs/Program.cs?name=snippet_r1)]