OpenAPI in .NET 10: Add Scalar (or Swagger UI) to an ASP.NET Core Web API
You’re starting a new .NET 10 Web API, run it and type /swagger out of habit. You get a 404, because the template doesn’t ship Swashbuckle anymore. ASP.NET Core OpenAPI support is built in now: AddOpenApi and MapOpenApi write the document to /openapi/v1.json, and you add Scalar or Swagger UI to read it. We’ll build … Read more >>