Freshness update: web-api-help-pages-using-swagger.md#36787
Open
Freshness update: web-api-help-pages-using-swagger.md#36787
Conversation
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update web API help pages with Swagger documentation
Freshness update: web-api-help-pages-using-swagger.md
Feb 23, 2026
Updated the article to reflect changes in .NET 9 regarding OpenAPI support and the status of Swashbuckle.
wadepickett
approved these changes
Feb 23, 2026
Contributor
wadepickett
left a comment
There was a problem hiding this comment.
Approved after I committed a few fixes to the AI gen original PR.
41 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Swagger/OpenAPI overview article was stale: no guidance for .NET 9+ readers, stale
ms.date, lowercase placeholders in the curl example, and a trailing period in a section heading.Changes
>= aspnetcore-8.0moniker block, pointing readers toxref:fundamentals/openapi/overviewandxref:fundamentals/openapi/aspnetcore-openapifor built-in OpenAPI supportms.date:4/25/2024→02/23/2026(MM/DD/YYYY format per repo convention)ai-usage: ai-assistedto frontmatter{token}→{TOKEN},{port}→{PORT}; added inline explanation of each placeholder per repo convention## Generate an XML documentation file at compile time.Original prompt
This section details on the original issue you should resolve
<issue_title>Freshness Update: web-api-help-pages-sing-swagger</issue_title>
<issue_description>### Description
Contributes to #36100
AI generated freshness report:
Run by: WadePickett
Review Report:
web-api-help-pages-using-swagger.mdFile:
aspnetcore/tutorials/web-api-help-pages-using-swagger.mdRepository:
dotnet/AspNetCore.DocsReviewed: 2026-02-23
Reviewer: @wadepickett
Overview
This article covers ASP.NET Core web API documentation with Swagger/OpenAPI. After a thorough review against the repository's copilot instructions and the current state of ASP.NET Core OpenAPI support, this article needs updating.
Verdict: Needs Updating
Critical Issues
MM/DD/YYYYper the repo guidelines (should be04/25/2024).4. Bash placeholder casing doesn't follow repo conventions
Location: Line 150
curl -i -H "Authorization: Bearer {token}" https://localhost:{port}/swagger/v1/swagger.jsonPer the copilot instructions, placeholders should use uppercase with spaces between words:
{TOKEN}and{PORT}. The current{token}and{port}don't conform. Additionally, placeholder descriptions should be provided in the surrounding text.Should be:
curl -i -H "Authorization: Bearer {TOKEN}" https://localhost:{PORT}/swagger/v1/swagger.jsonWith surrounding text explaining: "where the
{TOKEN}placeholder is the JWT bearer token and the{PORT}placeholder is the port number."Moderate Issues
5. Missing "not latest version" banner, however it is not needed in this case.
The
fundamentals/openapi/overview.mdarticle includes[!INCLUDE[](~/includes/not-latest-version.md)]for versioned content, but this Swagger article does not. There is good reason for this. Since the article only applies to<= aspnetcore-8.0, adding this include would help readers understand they're viewing older content.6. Trailing period in section header
Location: Line 155
## Generate an XML documentation file at compile time.Per the Microsoft Writing Style Guide and repo conventions, section headers should not end with a period.
Should be:
## Generate an XML documentation file at compile time--
What's Good (No Changes Needed)
xref:syntax (e.g.,xref:tutorials/get-started-with-swashbuckle)GenerateDocumentationFileuses the correct relative format without localeRequireAuthorizationuses proper encoding:::code) is correctly formatted*as required by the repotitlefirst, with remaining fields in alphabetical orderProposed NOTE for .NET 9+ Users
The NOTE
Analysis: Does this NOTE belong in the article?
Yes. This NOTE is highly valuable and...
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Internal previews