Merge pull request #34308 from neiesc/openapi/scalar-endpoint-local

openapi scalar endpoint local
pull/34323/head
Rick Anderson 2024-12-09 21:06:20 -10:00 committed by GitHub
commit 4aa7c148da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ The `Swashbuckle.AspNetCore.SwaggerUi` package provides a bundle of Swagger UI's
[!code-csharp[](~/fundamentals/openapi/samples/9.x/WebMinOpenApi/Program.cs?name=snippet_openapiwithscalar)]
Launch the app and navigate to `https://localhost:<port>/scalar/v1` to view the Scalar UI.
## Lint generated OpenAPI documents with Spectral
[Spectral](https://stoplight.io/open-source/spectral) is an open-source OpenAPI document linter. Spectral can be incorporated into an app build to verify the quality of generated OpenAPI documents. Install Spectral according to the [package installation directions](https://github.com/stoplightio/spectral#-installation).