Skip to content

Commit

Permalink
[Nuget] Publish v6.0.0-preview.6
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyBP committed Jul 18, 2024
1 parent 8b730f9 commit d8465cf
Show file tree
Hide file tree
Showing 21 changed files with 75 additions and 76 deletions.
8 changes: 4 additions & 4 deletions Apizr/Docs/Apizr.Docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ namespace Apizr.Sample
{
// (Refit) Define your web api interface methods
[Get("/api/users")]
Task<UserList> GetUsersAsync();
Task<UserList> GetUsersAsync([RequestOptions] IApizrRequestOptions options);

[Get("/api/users/{userId}")]
Task<UserDetails> GetUserAsync([CacheKey] int userId);
Task<UserDetails> GetUserAsync([CacheKey] int userId, [RequestOptions] IApizrRequestOptions options);

[Post("/api/users")]
Task<User> CreateUser(User user);
Task<User> CreateUser(User user, [RequestOptions] IApizrRequestOptions options);
}
}
```
Expand Down Expand Up @@ -137,7 +137,7 @@ var reqResManager = serviceProvider.GetRequiredService<IApizrManager<IReqResServ

And then you're good to go:
```csharp
var userList = await reqResManager.ExecuteAsync(api => api.GetUsersAsync());
var userList = await reqResManager.ExecuteAsync((api, opt) => api.GetUsersAsync(opt));
```

This request will be managed with the defined resilience strategies, data cached and all logged.
Expand Down
2 changes: 1 addition & 1 deletion Apizr/Tools/Apizr.Tools.NSwag/Apizr.Tools.NSwag.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ToolCommandName>apizr</ToolCommandName>
<!-- NuGet package metadata -->
<PackageId>Apizr.Tools.NSwag</PackageId>
<PackageVersion>6.0.0-preview.5</PackageVersion>
<PackageVersion>6.0.0-preview.6</PackageVersion>
<Description>An Apizr .NET Tool to generate models, interfaces and registration methods from a swagger url</Description>
<Authors>Respawnsive</Authors>
<PackageTags>Refit Web Api Generator CLI</PackageTags>
Expand Down
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Apizr

Refit based web api client, but resilient (retry, connectivity, cache, auth, log, priority...)
Refit based web api client management, but resilient (retry, connectivity, cache, auth, log, priority, etc...)

[![Read - Documentation](https://img.shields.io/badge/read-documentation-blue?style=for-the-badge)](https://apizr.net/ "Go to project documentation")
[![Read - Documentation](https://img.shields.io/badge/read-documentation-blue?style=for-the-badge)](https://apizr.net "Go to project documentation")

## What

Expand Down Expand Up @@ -37,8 +37,6 @@ The list is not exhaustive, there

Inspired by [Refit.Insane.PowerPack](https://github.com/thefex/Refit.Insane.PowerPack), we wanted to make it simple to use, mixing attribute decorations and fluent configuration.

Also, we built this lib to make it work with any .Net Standard 2.0 compliant platform, so we could use it seamlessly from any kind of app, with or without DI goodness.

## How

An api definition with some attributes:
Expand All @@ -55,13 +53,13 @@ namespace Apizr.Sample
{
// (Refit) Define your web api interface methods
[Get("/api/users")]
Task<UserList> GetUsersAsync();
Task<UserList> GetUsersAsync([RequestOptions] IApizrRequestOptions options);

[Get("/api/users/{userId}")]
Task<UserDetails> GetUserAsync([CacheKey] int userId);
Task<UserDetails> GetUserAsync([CacheKey] int userId, [RequestOptions] IApizrRequestOptions options);

[Post("/api/users")]
Task<User> CreateUser(User user);
Task<User> CreateUser(User user, [RequestOptions] IApizrRequestOptions options);
}
}
```
Expand Down Expand Up @@ -118,7 +116,6 @@ var reqResManager = ApizrBuilder.Current.CreateManagerFor<IReqResService>(
Relies on `IServiceCollection` extension methods approach.

```csharp

// (Logger) Configure logging the way you want, like
services.AddLogging(loggingBuilder => loggingBuilder.AddDebug());

Expand All @@ -140,16 +137,17 @@ var reqResManager = serviceProvider.GetRequiredService<IApizrManager<IReqResServ

And then you're good to go:
```csharp
var userList = await reqResManager.ExecuteAsync(api => api.GetUsersAsync());
var userList = await reqResManager.ExecuteAsync((api, opt) => api.GetUsersAsync(opt));
```

This request will be managed with the defined resilience strategies, data cached and all logged.

Apizr has a lot more to offer, just [read the doc](https://apizr.net)!
Apizr has a lot more to offer, just [read the doc](https://apizr.net/articles/index.md)!

## Where
- Please read the [Change Log](https://apizr.net/changelog.md) to get a picture of what's in.
- Please read the [Breaking changes](https://apizr.net/articles/breakingchanges.md) to get a picture of what's changed.

[Change Log](CHANGELOG.md)
## Where

### Managing (Core)

Expand Down Expand Up @@ -207,7 +205,8 @@ Install the NuGet reference package of your choice:
- **Apizr.Integrations.MediatR** package enables request auto handling with mediation using [MediatR](https://github.com/jbogard/MediatR)
- **Apizr.Integrations.Optional** package enables Optional result from mediation requests (requires MediatR integration) using [Optional.Async](https://github.com/dnikolovv/optional-async)
- **Apizr.Integrations.AutoMapper** package enables data mapping using [AutoMapper](https://github.com/AutoMapper/AutoMapper)
- **Apizr.Integrations.Mapster** package enables data mapping using [Mapster](https://github.com/MapsterMapper/Mapster)- **Apizr.Integrations.FileTransfer** package enables file transfer management for static registration
- **Apizr.Integrations.Mapster** package enables data mapping using [Mapster](https://github.com/MapsterMapper/Mapster)
- **Apizr.Integrations.FileTransfer** package enables file transfer management for static registration
- **Apizr.Extensions.Microsoft.FileTransfer** package enables file transfer management for extended registration
- **Apizr.Integrations.FileTransfer.MediatR** package enables file transfer management for mediation requests (requires MediatR integration and could work with Optional integration) using [MediatR](https://github.com/jbogard/MediatR)
- **Apizr.Integrations.FileTransfer.Optional** package enables file transfer management for mediation requests with optional result (requires MediatR integration and could work with Optional integration) using [Optional.Async](https://github.com/dnikolovv/optional-async)
Expand Down
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ <h2 id="how">How</h2>
{
// (Refit) Define your web api interface methods
[Get(&quot;/api/users&quot;)]
Task&lt;UserList&gt; GetUsersAsync();
Task&lt;UserList&gt; GetUsersAsync([RequestOptions] IApizrRequestOptions options);

[Get(&quot;/api/users/{userId}&quot;)]
Task&lt;UserDetails&gt; GetUserAsync([CacheKey] int userId);
Task&lt;UserDetails&gt; GetUserAsync([CacheKey] int userId, [RequestOptions] IApizrRequestOptions options);

[Post(&quot;/api/users&quot;)]
Task&lt;User&gt; CreateUser(User user);
Task&lt;User&gt; CreateUser(User user, [RequestOptions] IApizrRequestOptions options);
}
}
</code></pre>
Expand Down Expand Up @@ -201,7 +201,7 @@ <h2 id="how">How</h2>
</div>

<p>And then you're good to go:</p>
<pre><code class="lang-csharp">var userList = await reqResManager.ExecuteAsync(api =&gt; api.GetUsersAsync());
<pre><code class="lang-csharp">var userList = await reqResManager.ExecuteAsync((api, opt) =&gt; api.GetUsersAsync(opt));
</code></pre>
<p>This request will be managed with the defined resilience strategies, data cached and all logged.</p>
<p>Apizr has a lot more to offer, just <a href="articles/index.html">read the doc</a>!</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions nuget/Apizr.Extensions.Microsoft.Caching.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Apizr.Extensions.Microsoft.Caching</id>
<version>6.0.0-preview.5</version>
<version>6.0.0-preview.6</version>
<title>Apizr.Extensions.Microsoft.Caching</title>
<authors>Respawnsive</authors>
<owners>Respawnsive</owners>
Expand All @@ -16,7 +16,7 @@
<tags>Refit Cache Web Api Extensions</tags>
<dependencies>
<dependency id="Microsoft.Extensions.Caching.Abstractions" version="8.0.0" />
<dependency id="Apizr.Extensions.Microsoft.DependencyInjection" version="6.0.0-preview.5" />
<dependency id="Apizr.Extensions.Microsoft.DependencyInjection" version="6.0.0-preview.6" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions nuget/Apizr.Extensions.Microsoft.DependencyInjection.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Apizr.Extensions.Microsoft.DependencyInjection</id>
<version>6.0.0-preview.5</version>
<version>6.0.0-preview.6</version>
<title>Apizr.Extensions.Microsoft.DependencyInjection</title>
<authors>Respawnsive</authors>
<owners>Respawnsive</owners>
Expand All @@ -16,7 +16,7 @@
<tags>Refit Polly Fusillade HttpTracer Web Api Extensions</tags>
<dependencies>
<dependency id="Refit.HttpClientFactory" version="7.0.0" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</dependencies>
</metadata>
<files>
Expand Down
6 changes: 3 additions & 3 deletions nuget/Apizr.Extensions.Microsoft.FileTransfer.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Apizr.Extensions.Microsoft.FileTransfer</id>
<version>6.0.0-preview.5</version>
<version>6.0.0-preview.6</version>
<title>Apizr.Extensions.Microsoft.FileTransfer</title>
<authors>Respawnsive</authors>
<owners>Respawnsive</owners>
Expand All @@ -15,8 +15,8 @@
<releaseNotes>https://www.apizr.net/changelog.html</releaseNotes>
<tags>Refit Web Api Http File Transfer Download Upload</tags>
<dependencies>
<dependency id="Apizr.Extensions.Microsoft.DependencyInjection" version="6.0.0-preview.5" />
<dependency id="Apizr.Integrations.FileTransfer" version="6.0.0-preview.5" />
<dependency id="Apizr.Extensions.Microsoft.DependencyInjection" version="6.0.0-preview.6" />
<dependency id="Apizr.Integrations.FileTransfer" version="6.0.0-preview.6" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions nuget/Apizr.Integrations.Akavache.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Apizr.Integrations.Akavache</id>
<version>6.0.0-preview.5</version>
<version>6.0.0-preview.6</version>
<title>Apizr.Integrations.Akavache</title>
<authors>Respawnsive</authors>
<owners>Respawnsive</owners>
Expand All @@ -16,7 +16,7 @@
<tags>Refit Polly Fusillade HttpTracer Web Api Akavache</tags>
<dependencies>
<dependency id="akavache" version="9.1.20" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</dependencies>
</metadata>
<files>
Expand Down
10 changes: 5 additions & 5 deletions nuget/Apizr.Integrations.AutoMapper.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Apizr.Integrations.AutoMapper</id>
<version>6.0.0-preview.5</version>
<version>6.0.0-preview.6</version>
<title>Apizr.Integrations.AutoMapper</title>
<authors>Respawnsive</authors>
<owners>Respawnsive</owners>
Expand All @@ -17,19 +17,19 @@
<dependencies>
<group targetFramework="net6.0">
<dependency id="AutoMapper" version="13.0.1" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</group>
<group targetFramework="net7.0">
<dependency id="AutoMapper" version="13.0.1" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</group>
<group targetFramework="net8.0">
<dependency id="AutoMapper" version="13.0.1" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</group>
<group targetFramework=".NETStandard2.1">
<dependency id="AutoMapper" version="12.0.1" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</group>
</dependencies>
</metadata>
Expand Down
6 changes: 3 additions & 3 deletions nuget/Apizr.Integrations.FileTransfer.MediatR.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Apizr.Integrations.FileTransfer.MediatR</id>
<version>6.0.0-preview.5</version>
<version>6.0.0-preview.6</version>
<title>Apizr.Integrations.FileTransfer.MediatR</title>
<authors>Respawnsive</authors>
<owners>Respawnsive</owners>
Expand All @@ -15,8 +15,8 @@
<releaseNotes>https://www.apizr.net/changelog.html</releaseNotes>
<tags>Refit Web Api Http Transfer</tags>
<dependencies>
<dependency id="Apizr.Integrations.MediatR" version="6.0.0-preview.5" />
<dependency id="Apizr.Extensions.Microsoft.FileTransfer" version="6.0.0-preview.5" />
<dependency id="Apizr.Integrations.MediatR" version="6.0.0-preview.6" />
<dependency id="Apizr.Extensions.Microsoft.FileTransfer" version="6.0.0-preview.6" />
</dependencies>
</metadata>
<files>
Expand Down
6 changes: 3 additions & 3 deletions nuget/Apizr.Integrations.FileTransfer.Optional.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Apizr.Integrations.FileTransfer.Optional</id>
<version>6.0.0-preview.5</version>
<version>6.0.0-preview.6</version>
<title>Apizr.Integrations.FileTransfer.Optional</title>
<authors>Respawnsive</authors>
<owners>Respawnsive</owners>
Expand All @@ -15,8 +15,8 @@
<releaseNotes>https://www.apizr.net/changelog.html</releaseNotes>
<tags>Refit Web Api Http Transfer</tags>
<dependencies>
<dependency id="Apizr.Integrations.Optional" version="6.0.0-preview.5" />
<dependency id="Apizr.Integrations.FileTransfer.MediatR" version="6.0.0-preview.5" />
<dependency id="Apizr.Integrations.Optional" version="6.0.0-preview.6" />
<dependency id="Apizr.Integrations.FileTransfer.MediatR" version="6.0.0-preview.6" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions nuget/Apizr.Integrations.FileTransfer.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Apizr.Integrations.FileTransfer</id>
<version>6.0.0-preview.5</version>
<version>6.0.0-preview.6</version>
<title>Apizr.Integrations.FileTransfer</title>
<authors>Respawnsive</authors>
<owners>Respawnsive</owners>
Expand All @@ -15,7 +15,7 @@
<releaseNotes>https://www.apizr.net/changelog.html</releaseNotes>
<tags>Refit Web Api Http Transfer</tags>
<dependencies>
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions nuget/Apizr.Integrations.Fusillade.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Apizr.Integrations.Fusillade</id>
<version>6.0.0-preview.5</version>
<version>6.0.0-preview.6</version>
<title>Apizr.Integrations.Fusillade</title>
<authors>Respawnsive</authors>
<owners>Respawnsive</owners>
Expand All @@ -16,7 +16,7 @@
<tags>Refit Fusillade Web Api Akavache</tags>
<dependencies>
<dependency id="fusillade" version="2.6.1" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</dependencies>
</metadata>
<files>
Expand Down
12 changes: 6 additions & 6 deletions nuget/Apizr.Integrations.Mapster.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Apizr.Integrations.Mapster</id>
<version>6.0.0-preview.5</version>
<version>6.0.0-preview.6</version>
<title>Apizr.Integrations.Mapster</title>
<authors>Respawnsive</authors>
<owners>Respawnsive</owners>
Expand All @@ -17,23 +17,23 @@
<dependencies>
<group targetFramework=".NETStandard2.0">
<dependency id="Mapster" version="7.3.0" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</group>
<group targetFramework=".NETStandard2.1">
<dependency id="Mapster" version="7.3.0" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</group>
<group targetFramework="net6.0">
<dependency id="Mapster" version="7.4.0" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</group>
<group targetFramework="net7.0">
<dependency id="Mapster" version="7.4.0" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</group>
<group targetFramework="net8.0">
<dependency id="Mapster" version="7.4.0" />
<dependency id="Apizr" version="6.0.0-preview.5" />
<dependency id="Apizr" version="6.0.0-preview.6" />
</group>
</dependencies>
</metadata>
Expand Down
4 changes: 2 additions & 2 deletions nuget/Apizr.Integrations.MediatR.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>Apizr.Integrations.MediatR</id>
<version>6.0.0-preview.5</version>
<version>6.0.0-preview.6</version>
<title>Apizr.Integrations.MediatR</title>
<authors>Respawnsive</authors>
<owners>Respawnsive</owners>
Expand All @@ -16,7 +16,7 @@
<tags>Refit Web Api MediatR</tags>
<dependencies>
<dependency id="MediatR" version="12.2.0" />
<dependency id="Apizr.Extensions.Microsoft.DependencyInjection" version="6.0.0-preview.5" />
<dependency id="Apizr.Extensions.Microsoft.DependencyInjection" version="6.0.0-preview.6" />
</dependencies>
</metadata>
<files>
Expand Down
Loading

0 comments on commit d8465cf

Please sign in to comment.