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
Reorganize solution structure and update documentation
- Restructured `MinimalHelpers.slnx` to improve project organization by moving `/OpenApi/`, `/Routing/`, and `/Validation/` folders under `/src/` and adding a new `/samples/` folder.
- Enhanced clarity and consistency in `README.md` descriptions, including updates to installation instructions and usage examples.
- Updated `MinimalSample.csproj` and `MinimalHelpers.OpenApi.csproj` to reference the latest versions of `Microsoft.AspNetCore.OpenApi` and `TinyHelpers.AspNetCore` packages.
- Made minor grammatical improvements in `README.md`.
A library that provides Routing helpers for Minimal API projects for automatic endpoints registration using Reflection.
14
-
13
+
A library that provides routing helpers for Minimal API projects, enabling automatic endpoint registration using reflection.
15
14
### Installation
16
15
17
-
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**:
16
+
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**:
18
17
19
18
```shell
20
19
dotnet add package MinimalHelpers.Routing
21
20
```
22
21
23
22
### Usage
24
23
25
-
Create a class to hold your route handlers registration and have it implement the `IEndpointRouteHandlerBuilder` interface:
24
+
Create a class to hold your route handler registrations and have it implement the `IEndpointRouteHandlerBuilder` interface:
@@ -40,7 +39,7 @@ public class PeopleEndpoints : MinimalHelpers.Routing.IEndpointRouteHandlerBuild
40
39
}
41
40
```
42
41
43
-
Call the `MapEndpoints()` extension method on the **WebApplication** object inside*Program.cs* before invoking the `Run()` method:
42
+
Call the `MapEndpoints()` extension method on the **WebApplication** object in*Program.cs* before invoking the `Run()` method:
44
43
45
44
```csharp
46
45
// using MinimalHelpers.Routing;
@@ -80,15 +79,15 @@ A library that provides a Source Generator for automatic endpoints registration
80
79
81
80
### Installation
82
81
83
-
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**:
82
+
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**:
@@ -109,7 +108,7 @@ public class PeopleEndpoints : IEndpointRouteHandlerBuilder
109
108
> **Note**
110
109
You only need to use the **MinimalHelpers.Routing.Analyzers** package. With this Source Generator, the `IEndpointRouteHandlerBuilder` interface is auto-generated.
111
110
112
-
Call the `MapEndpoints()` extension method on the **WebApplication** object inside*Program.cs* before the `Run()` method invocation:
111
+
Call the `MapEndpoints()` extension method on the **WebApplication** object in*Program.cs* before the `Run()` method invocation:
113
112
114
113
```csharp
115
114
app.MapEndpoints();
@@ -129,7 +128,7 @@ A library that provides OpenAPI helpers for Minimal API projects.
129
128
130
129
### Installation
131
130
132
-
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**:
131
+
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:
141
+
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.
189
+
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.
191
190
192
191
### Installation
193
192
194
-
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**:
193
+
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**:
195
194
196
195
```shell
197
196
dotnet add package MinimalHelpers.Validation
@@ -274,11 +273,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>.
276
+
A library that provides an endpoint filter for Minimal API projects to perform validation using <ahref="https://fluentvalidation.net">FluentValidation</a>.
278
277
279
278
### Installation
280
279
281
-
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**:
280
+
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**:
@@ -367,4 +366,4 @@ You can use the `ValidationErrorTitleMessageFactory`, for example, if you want t
367
366
368
367
**Contributing**
369
368
370
-
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.
369
+
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