Skip to content

Commit 04da13f

Browse files
committed
move more samples from .NET 7 to minimal-api
1 parent fcda9d3 commit 04da13f

File tree

19 files changed

+20
-22
lines changed

19 files changed

+20
-22
lines changed

projects/.net7/README.MD

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,6 @@ Samples in this section require .NET 7. You can download it from [here](https://
66

77
There is no need for `[FromServices]` attribute anymore to inject a dependency to your action method.
88

9-
* [Typed Results - 1](typed-results-1)
10-
11-
`Microsoft.AspNetCore.Http.TypedResults` static class is the “typed” equivalent of the existing `Microsoft.AspNetCore.Http.Results` class.
12-
13-
* [WithOpenApi - 1](open-api-1)
14-
15-
This sample demonstrate the usage of `WithOpenApi` extension method available in `Microsoft.AspNetCore.OpenApi` to customize OpenAPI operation information.
16-
17-
* [Results<> Union Type](open-api-2)
18-
19-
`Results<TResult1, TResult2, TResultN>` provides better description of the result of the operation that OpenAPI/Swagger can use in describing the API.
20-
21-
* [IFormFile](iform-file)
22-
23-
This sample demonstrates the usage of `IFormFile` to upload a file in Minimal API.
24-
25-
* [IFormFileCollection](iform-file-collection)
26-
27-
This sample demonstrates the usage of `IFormFileCollection` to upload multiple files in Minimal API.
28-
29-
30-
319
## Authentication
3210

3311
* [Authentication - JWT](authentication-1)

projects/minimal-api/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,23 @@ In these examples we are using the familiar `Host.CreateDefaultBuilder(args)` ho
155155
* [Minimal API Form Model Binding](minimal-api-form-model-binding)
156156

157157
This sample demonstrates the ability to use `[FromForm]` binding in Minimal API.
158+
159+
* [Typed Results - 1](typed-results-1)
160+
161+
`Microsoft.AspNetCore.Http.TypedResults` static class is the “typed” equivalent of the existing `Microsoft.AspNetCore.Http.Results` class.
162+
163+
* [WithOpenApi - 1](open-api-1)
164+
165+
This sample demonstrate the usage of `WithOpenApi` extension method available in `Microsoft.AspNetCore.OpenApi` to customize OpenAPI operation information.
166+
167+
* [Results<> Union Type](open-api-2)
168+
169+
`Results<TResult1, TResult2, TResultN>` provides better description of the result of the operation that OpenAPI/Swagger can use in describing the API.
170+
171+
* [IFormFile](iform-file)
172+
173+
This sample demonstrates the usage of `IFormFile` to upload a file in Minimal API.
174+
175+
* [IFormFileCollection](iform-file-collection)
176+
177+
This sample demonstrates the usage of `IFormFileCollection` to upload multiple files in Minimal API.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)