You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A library that provides Routing helpers for Minimal API projects for automatic endpoints registration using Reflection.
15
-
14
+
A library that provides routing helpers for Minimal API projects, enabling automatic endpoint registration using reflection.
16
15
### Installation
17
16
18
-
The library is available on [NuGet](https://www.nuget.org/packages/MinimalHelpers.Routing). Just search for *MinimalHelpers.Routing* in the **Package Manager GUI** or run the following command in the **.NET CLI**:
17
+
The library is available on [NuGet](https://www.nuget.org/packages/MinimalHelpers.Routing). Search for *MinimalHelpers.Routing* in the **Package Manager GUI** or run the following command in the **.NET CLI**:
19
18
20
19
```shell
21
20
dotnet add package MinimalHelpers.Routing
22
21
```
23
22
24
23
### Usage
25
24
26
-
Create a class to hold your route handlers registration and have it implement the `IEndpointRouteHandlerBuilder` interface:
25
+
Create a class to hold your route handler registrations and have it implement the `IEndpointRouteHandlerBuilder` interface:
@@ -41,7 +40,7 @@ public class PeopleEndpoints : MinimalHelpers.Routing.IEndpointRouteHandlerBuild
41
40
}
42
41
```
43
42
44
-
Call the `MapEndpoints()` extension method on the **WebApplication** object inside*Program.cs* before invoking the `Run()` method:
43
+
Call the `MapEndpoints()` extension method on the **WebApplication** object in*Program.cs* before invoking the `Run()` method:
45
44
46
45
```csharp
47
46
// using MinimalHelpers.Routing;
@@ -81,15 +80,15 @@ A library that provides a Source Generator for automatic endpoints registration
81
80
82
81
### Installation
83
82
84
-
The library is available on [NuGet](https://www.nuget.org/packages/MinimalHelpers.Routing.Analyzers). Just search for *MinimalHelpers.Routing* in the **Package Manager GUI** or run the following command in the **.NET CLI**:
83
+
The library is available on [NuGet](https://www.nuget.org/packages/MinimalHelpers.Routing.Analyzers). Search for *MinimalHelpers.Routing* in the **Package Manager GUI** or run the following command in the **.NET CLI**:
@@ -110,7 +109,7 @@ public class PeopleEndpoints : IEndpointRouteHandlerBuilder
110
109
> **Note**
111
110
You only need to use the **MinimalHelpers.Routing.Analyzers** package. With this Source Generator, the `IEndpointRouteHandlerBuilder` interface is auto-generated.
112
111
113
-
Call the `MapEndpoints()` extension method on the **WebApplication** object inside*Program.cs* before the `Run()` method invocation:
112
+
Call the `MapEndpoints()` extension method on the **WebApplication** object in*Program.cs* before the `Run()` method invocation:
114
113
115
114
```csharp
116
115
app.MapEndpoints();
@@ -130,7 +129,7 @@ A library that provides OpenAPI helpers for Minimal API projects.
130
129
131
130
### Installation
132
131
133
-
The library is available on [NuGet](https://www.nuget.org/packages/MinimalHelpers.OpenApi). Just search for *MinimalHelpers.OpenApi* in the **Package Manager GUI** or run the following command in the **.NET CLI**:
132
+
The library is available on [NuGet](https://www.nuget.org/packages/MinimalHelpers.OpenApi). Search for *MinimalHelpers.OpenApi* in the **Package Manager GUI** or run the following command in the **.NET CLI**:
This library provides several extension methods that simplify the OpenAPI configuration in Minimal API projects. For example, it is possible to customize the description of a response using its status code:
142
+
This library provides several extension methods that simplify the OpenAPI configuration in Minimal API projects. For example, you can customize the description of a response using its status code:
A library that provides an Endpoint filter for Minimal API projects to perform validation with Data Annotations, using the <ahref="https://github.com/DamianEdwards/MiniValidation">MiniValidation</a> library.
190
+
A library that provides an endpoint filter for Minimal API projects to perform validation using Data Annotations and the <ahref="https://github.com/DamianEdwards/MiniValidation">MiniValidation</a> library.
192
191
193
192
### Installation
194
193
195
-
The library is available on [NuGet](https://www.nuget.org/packages/MinimalHelpers.Validation). Just search for *MinimalHelpers.Validation* in the **Package Manager GUI** or run the following command in the **.NET CLI**:
194
+
The library is available on [NuGet](https://www.nuget.org/packages/MinimalHelpers.Validation). Search for *MinimalHelpers.Validation* in the **Package Manager GUI** or run the following command in the **.NET CLI**:
196
195
197
196
```shell
198
197
dotnet add package MinimalHelpers.Validation
@@ -275,11 +274,11 @@ You can use the `ValidationErrorTitleMessageFactory`, for example, if you want t
A library that provides an Endpoint filter for Minimal API projects to perform validation using <ahref="https://fluentvalidation.net">FluentValidation</a>.
277
+
A library that provides an endpoint filter for Minimal API projects to perform validation using <ahref="https://fluentvalidation.net">FluentValidation</a>.
279
278
280
279
### Installation
281
280
282
-
The library is available on [NuGet](https://www.nuget.org/packages/MinimalHelpers.FluentValidation). Just search for *MinimalHelpers.FluentValidation* in the **Package Manager GUI** or run the following command in the **.NET CLI**:
281
+
The library is available on [NuGet](https://www.nuget.org/packages/MinimalHelpers.FluentValidation). Search for *MinimalHelpers.FluentValidation* in the **Package Manager GUI** or run the following command in the **.NET CLI**:
@@ -368,4 +367,4 @@ You can use the `ValidationErrorTitleMessageFactory`, for example, if you want t
368
367
369
368
**Contributing**
370
369
371
-
The project is constantly evolving. Contributions are welcome! Please file issues or pull requests in the repository and they will be addressed as soon as possible.
370
+
The project is constantly evolving. Contributions are welcome. Feel free to file issues and pull requests in the repository, and we'll address them as we can.
0 commit comments