Skip to content

Min Web API tutorial rewrite plus app samples updates v10#37294

Open
wadepickett wants to merge 39 commits into
mainfrom
wadepickett/37018MinWebAPIupdateTry4
Open

Min Web API tutorial rewrite plus app samples updates v10#37294
wadepickett wants to merge 39 commits into
mainfrom
wadepickett/37018MinWebAPIupdateTry4

Conversation

@wadepickett

@wadepickett wadepickett commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Fixes #37302

Rewrites the Minimal Web API tutorial to:

  • Change the starting point from an empty project to the OpenAPI-enabled Web API template where most developers would start. Visual Studio now uses the ASP.NET Core Web API project type (with "Enable OpenAPI support" checked and "Use controllers" unchecked); the CLI switches from dotnet new web to dotnet new webapi.

  • Replace the old Swagger/NSwag testing approach with the built-in OpenAPI document generator (AddOpenApi() / MapOpenApi()), and uses Scalar (Scalar.AspNetCore) as the browser UI for VS Code instead of NSwag's Swagger UI. Visual Studio continues to use Endpoints Explorer + .http files.

  • Update all 8 app samples used by this tutorial for .NET 10 using the ASP.NET Core Web API (webapi for CLI) template.

After this PR is completed/merged:
Update in a new PR refer to final complete app version VS (using .http testing files) and VS Code (using Swagger UI)version on the AspNetCore.docs.samples repo which can be run in Codespaces.


Internal previews

📄 File 🔗 Preview link
aspnetcore/tutorials/min-web-api.md Tutorial: Create a Minimal API with ASP.NET Core

@wadepickett wadepickett self-assigned this Jun 25, 2026

@mikekistler mikekistler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. 👍

I left a few nit-picky comments, but one bigger concern is using NSwag. I think I'd prefer that we use either SwagggerUI from Swashbuckle or Scalar, since those are the ones we describe elsewhere in the docs.

Comment thread aspnetcore/tutorials/min-web-api.md Outdated
Comment thread aspnetcore/tutorials/min-web-api.md Outdated
Comment thread aspnetcore/tutorials/min-web-api.md Outdated
Comment thread aspnetcore/tutorials/min-web-api.md Outdated
Comment thread aspnetcore/tutorials/min-web-api.md Outdated
Comment thread aspnetcore/tutorials/min-web-api.md Outdated
Comment thread aspnetcore/tutorials/min-web-api.md Outdated
Comment thread aspnetcore/tutorials/min-web-api.md Outdated
@wadepickett

Copy link
Copy Markdown
Contributor Author

OK thanks! It was using Swagger UI, but you are right, it was coming from the Nswag package. I will change it.

wadepickett and others added 25 commits June 25, 2026 20:47
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
@wadepickett wadepickett marked this pull request as ready for review July 1, 2026 06:38
@wadepickett

wadepickett commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@mikekistler, finally done. It is using Scalar for the VSC version now instead. If the code and tutorial look OK, then I will put a copy of this code on the samples repo and pont to it at the top indicating where the finished sample is and that it is Codespaces supported.

@wadepickett

wadepickett commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@tdykstra, for an additonal review request.

@wadepickett

wadepickett commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@tdykstra, for an additonal review request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Min Web API Tutorial Complete Rewrite and 8 app sample update

2 participants