File tree Expand file tree Collapse file tree 8 files changed +4
-24
lines changed
todoTypedResults_SwaggerVersion Expand file tree Collapse file tree 8 files changed +4
-24
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ title: "Tutorial: Create a minimal API with ASP.NET Core"
3
3
author : wadepickett
4
4
description : Learn how to build a minimal API with ASP.NET Core.
5
5
ms.author : wpickett
6
- ms.date : 06/27 /2024
6
+ ms.date : 07/29 /2024
7
7
ms.custom : engagement-fy24
8
8
monikerRange : ' >= aspnetcore-6.0'
9
9
uid : tutorials/min-web-api
@@ -206,13 +206,9 @@ The previous command adds the [NSwag.AspNetCore](https://www.nuget.org/packages/
206
206
207
207
### Configure Swagger middleware
208
208
209
- * In Program.cs add the following ` using ` statements at the top:
209
+ * In Program.cs add the following highlighted code before ` app ` is defined in line ` var app = builder.Build(); `
210
210
211
- [ !code-csharp[ ] ( ~/tutorials/min-web-api/samples/9.x/todo_SwaggerVersion/Program.cs?name=snippet_swagger_using_statements )]
212
-
213
- * Add the following highlighted code before ` app ` is defined in line ` var app = builder.Build(); `
214
-
215
- [ !code-csharp[ ] ( ~/tutorials/min-web-api/samples/9.x/todo_SwaggerVersion/Program.cs?name=snippet_swagger_add_service&highlight=8-14 )]
211
+ [ !code-csharp[ ] ( ~/tutorials/min-web-api/samples/9.x/todo_SwaggerVersion/Program.cs?name=snippet_swagger_add_service&highlight=7-13 )]
216
212
217
213
In the previous code:
218
214
Original file line number Diff line number Diff line change @@ -172,13 +172,9 @@ The previous command adds the [NSwag.AspNetCore](https://www.nuget.org/packages/
172
172
173
173
### Configure Swagger middleware
174
174
175
- * In Program.cs add the following ` using ` statements at the top:
176
-
177
- [ !code-csharp[ ] ( ~/tutorials/min-web-api/samples/7.x/todo_SwaggerVersion/Program.cs?name=snippet_swagger_using_statements )]
178
-
179
175
* Add the following highlighted code before ` app ` is defined in line ` var app = builder.Build(); `
180
176
181
- [ !code-csharp[ ] ( ~/tutorials/min-web-api/samples/7.x/todo_SwaggerVersion/Program.cs?name=snippet_swagger_add_service&highlight=8-14 )]
177
+ [ !code-csharp[ ] ( ~/tutorials/min-web-api/samples/7.x/todo_SwaggerVersion/Program.cs?name=snippet_swagger_add_service&highlight=7-13 )]
182
178
183
179
In the previous code:
184
180
Original file line number Diff line number Diff line change @@ -187,10 +187,6 @@ The previous command adds the [NSwag.AspNetCore](https://www.nuget.org/packages/
187
187
188
188
### Configure Swagger middleware
189
189
190
- * In Program.cs add the following ` using ` statements at the top:
191
-
192
- [ !code-csharp[ ] ( ~/tutorials/min-web-api/samples/8.x/todo_SwaggerVersion/Program.cs?name=snippet_swagger_using_statements )]
193
-
194
190
* Add the following highlighted code before ` app ` is defined in line ` var app = builder.Build(); `
195
191
196
192
[ !code-csharp[ ] ( ~/tutorials/min-web-api/samples/8.x/todo_SwaggerVersion/Program.cs?name=snippet_swagger_add_service&highlight=8-14 )]
Original file line number Diff line number Diff line change 12
12
// <snippet_all>
13
13
// <snippet_swagger_add_service>
14
14
// <snippet_swagger_using_statements>
15
- using NSwag . AspNetCore ;
16
- // </snippet_swagger_using_statements>
17
15
using Microsoft . EntityFrameworkCore ;
18
16
19
17
var builder = WebApplication . CreateBuilder ( args ) ;
Original file line number Diff line number Diff line change 1
1
// <snippet_all>
2
- using NSwag . AspNetCore ;
3
2
using Microsoft . EntityFrameworkCore ;
4
3
5
4
var builder = WebApplication . CreateBuilder ( args ) ;
Original file line number Diff line number Diff line change 1
1
// <snippet_all>
2
- using NSwag . AspNetCore ;
3
2
using Microsoft . EntityFrameworkCore ;
4
3
5
4
var builder = WebApplication . CreateBuilder ( args ) ;
Original file line number Diff line number Diff line change 1
1
// <snippet_all>
2
- using NSwag . AspNetCore ;
3
2
using Microsoft . EntityFrameworkCore ;
4
3
5
4
var builder = WebApplication . CreateBuilder ( args ) ;
Original file line number Diff line number Diff line change 11
11
#elif FINAL
12
12
// <snippet_all>
13
13
// <snippet_swagger_add_service>
14
- // <snippet_swagger_using_statements>
15
- using NSwag . AspNetCore ;
16
- // </snippet_swagger_using_statements>
17
14
using Microsoft . EntityFrameworkCore ;
18
15
19
16
var builder = WebApplication . CreateBuilder ( args ) ;
You can’t perform that action at this time.
0 commit comments