Skip to content

Commit 8f417c1

Browse files
authored
Add OpenAPI/SwaggerUI (#35389)
1 parent fd7e98f commit 8f417c1

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

aspnetcore/blazor/security/blazor-web-app-with-entra.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ The `MinimalApiJwt` project is a backend web API for multiple frontend projects.
7575

7676
The `MinimalApiJwt.http` file can be used for testing the weather data request. Note that the `MinimalApiJwt` project must be running to test the endpoint, and the endpoint is hardcoded into the file. For more information, see <xref:test/http-files>.
7777

78+
The project includes packages and configuration to produce [OpenAPI documents](xref:fundamentals/openapi/overview) and the [Swagger UI](https://swagger.io/api-hub/) in the Development environment. For more information, see <xref:fundamentals/openapi/using-openapi-documents#use-swagger-ui-for-local-ad-hoc-testing>.
79+
7880
A secure weather forecast data endpoint is in the project's `Program` file:
7981

8082
```csharp
@@ -283,6 +285,8 @@ The `MinimalApiJwt` project is a backend web API for multiple frontend projects.
283285

284286
The `MinimalApiJwt.http` file can be used for testing the weather data request. Note that the `MinimalApiJwt` project must be running to test the endpoint, and the endpoint is hardcoded into the file. For more information, see <xref:test/http-files>.
285287

288+
The project includes packages and configuration to produce [OpenAPI documents](xref:fundamentals/openapi/overview) and the [Swagger UI](https://swagger.io/api-hub/) in the Development environment. For more information, see <xref:fundamentals/openapi/using-openapi-documents#use-swagger-ui-for-local-ad-hoc-testing>.
289+
286290
A secure weather forecast data endpoint is in the project's `Program` file:
287291

288292
```csharp

aspnetcore/blazor/security/blazor-web-app-with-oidc.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ The `MinimalApiJwt` project is a backend web API for multiple frontend projects.
114114

115115
The `MinimalApiJwt.http` file can be used for testing the weather data request. Note that the `MinimalApiJwt` project must be running to test the endpoint, and the endpoint is hardcoded into the file. For more information, see <xref:test/http-files>.
116116

117+
The project includes packages and configuration to produce [OpenAPI documents](xref:fundamentals/openapi/overview) and the [Swagger UI](https://swagger.io/api-hub/) in the Development environment. For more information, see <xref:fundamentals/openapi/using-openapi-documents#use-swagger-ui-for-local-ad-hoc-testing>.
118+
117119
The project creates a [Minimal API](xref:fundamentals/minimal-apis) endpoint for weather data:
118120

119121
```csharp
@@ -439,6 +441,8 @@ The `MinimalApiJwt` project is a backend web API for multiple frontend projects.
439441

440442
The `MinimalApiJwt.http` file can be used for testing the weather data request. Note that the `MinimalApiJwt` project must be running to test the endpoint, and the endpoint is hardcoded into the file. For more information, see <xref:test/http-files>.
441443

444+
The project includes packages and configuration to produce [OpenAPI documents](xref:fundamentals/openapi/overview) and the [Swagger UI](https://swagger.io/api-hub/) in the Development environment. For more information, see <xref:fundamentals/openapi/using-openapi-documents#use-swagger-ui-for-local-ad-hoc-testing>.
445+
442446
The project creates a [Minimal API](xref:fundamentals/minimal-apis) endpoint for weather data:
443447

444448
```csharp
@@ -824,6 +828,8 @@ The `MinimalApiJwt` project is a backend web API for multiple frontend projects.
824828

825829
The `MinimalApiJwt.http` file can be used for testing the weather data request. Note that the `MinimalApiJwt` project must be running to test the endpoint, and the endpoint is hardcoded into the file. For more information, see <xref:test/http-files>.
826830

831+
The project includes packages and configuration to produce [OpenAPI documents](xref:fundamentals/openapi/overview) and the [Swagger UI](https://swagger.io/api-hub/) in the Development environment. For more information, see <xref:fundamentals/openapi/using-openapi-documents#use-swagger-ui-for-local-ad-hoc-testing>.
832+
827833
A secure weather forecast data endpoint is in the project's `Program` file:
828834

829835
```csharp

0 commit comments

Comments
 (0)