Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Controller-based API" tutorial expects Swagger, but swagger isn't present by default #34524

Open
diiq opened this issue Jan 20, 2025 · 1 comment
Assignees
Labels
aspnet-core/svc okr-health Content health internal initiative Source - Docs.ms Docs Customer feedback via GitHub Issue tutorials/subsvc

Comments

@diiq
Copy link

diiq commented Jan 20, 2025

Description

One of the very first steps listed in this tutorial is "The Swagger page /swagger/index.html is displayed. Select GET > Try it out > Execute."

But today, the project template uses OpenAPI and not swagger, so the provided URL is a 404, and will only show a blank window without swagger or swashbuckle being installed.

I'm sure this tutorial worked when it was written -- thanks for writing it! -- but without changes it no longer gets new users even as far as successfully demonstrating the initial template, so 90% of it goes to waste.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-9.0&tabs=visual-studio-code

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/tutorials/first-web-api.md

Document ID

95f2549e-29f9-e31a-b4d0-432b971643ff

Article author

@wadepickett

Metadata

  • ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
  • Service: aspnet-core
  • Sub-service: tutorials

Related Issues

@wadepickett
Copy link
Contributor

@diiq, you are correct, this tutorial needs an update. Thanks for pointing it out. It is now scheduled for a rewrite/recode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aspnet-core/svc okr-health Content health internal initiative Source - Docs.ms Docs Customer feedback via GitHub Issue tutorials/subsvc
Projects
Development

No branches or pull requests

2 participants