Skip to content

Missing Swagger code #36066

@mikefizzled

Description

@mikefizzled

Description

In the 'Register the database context' section of the tutorial, the complete code sample is missing the Swagger configuration line that was previously added in the 'Configure Swagger middleware' section.

The user is instructed to either update their code with the highlighted changes or copy the entire code box. If they copy the code box, the Swagger UI is omitted. Later in the tutorial, the user is asked to navigate to the Swagger URL, which won’t work if they used the copied code.

It may seem obvious, but if the user is following the tutorial sequentially, the omission feels accidental. The complete code sample is already available and can be easily reinserted.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-9.0&utm_source=chatgpt.com&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

Platform Id

5e962f0c-0c64-0e03-aba5-9c8b1bdd9b95

Article author

@wadepickett

Metadata

  • ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
  • PlatformId: 5e962f0c-0c64-0e03-aba5-9c8b1bdd9b95
  • Service: aspnet-core
  • Sub-service: tutorials

Related Issues


Associated WorkItem - 489792

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions