AVPRClient 0.3.0-preview.4
dotnet add package AVPRClient --version 0.3.0-preview.4
NuGet\Install-Package AVPRClient -Version 0.3.0-preview.4
<PackageReference Include="AVPRClient" Version="0.3.0-preview.4" />
<PackageVersion Include="AVPRClient" Version="0.3.0-preview.4" />
<PackageReference Include="AVPRClient" />
paket add AVPRClient --version 0.3.0-preview.4
#r "nuget: AVPRClient, 0.3.0-preview.4"
#:package AVPRClient@0.3.0-preview.4
#addin nuget:?package=AVPRClient&version=0.3.0-preview.4&prerelease
#tool nuget:?package=AVPRClient&version=0.3.0-preview.4&prerelease
AVPR Client
.NET client library for https://avpr.nfdi4plants.org.
Generated with NSwag based on the OpenAPI specification. This package contains
only generated transport code and its JSON dependency. Applications that need
portable validation-package types should reference AVPRClient.Interop
explicitly.
Use GetPackageIndexAsync, GetPackageVersionsAsync, and
GetPackageMetadataAsync for discovery and preflight. The legacy
GetAllPackagesAsync method downloads every executable package and is retained
only for compatibility.
Usage
fsharp
open AVPRClient
let client =
let httpClient = new System.Net.Http.HttpClient()
httpClient.DefaultRequestHeaders.Add("X-API-KEY", apiKey)
new AVPRClient.Client(httpClient)
csharp
using AVPRClient;
var httpClient = new System.Net.Http.HttpClient()
httpClient.DefaultRequestHeaders.Add("X-API-KEY", apiKey)
var client = new Client(httpClient);
(Re)generate client
NSwag is pinned as a repository-local .NET tool. Restore it once after cloning
or whenever .config/dotnet-tools.json changes:
dotnet tool restore
Start the registry service locally with its HTTP launch profile so that its
OpenAPI document is available at
http://localhost:5099/swagger/v1/swagger.json:
dotnet run --project src/PackageRegistryService/PackageRegistryService.csproj --launch-profile http
Then, from the repository root in another terminal, regenerate the client with:
dotnet tool run nswag -- run src/AVPRClient/nswag.json
The checked-in nswag.json fixes the input URL, namespace, client name,
generation mode, and output path. To use another running service without
editing the configuration, override OpenApiUrl:
dotnet tool run nswag -- run src/AVPRClient/nswag.json /variables:OpenApiUrl=http://localhost:5001/swagger/v1/swagger.json
Review the generated diff and build/test the client before committing it. Do not regenerate against the production API when implementing an API schema change, because production will still expose the previous schema.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on AVPRClient:
| Package | Downloads |
|---|---|
|
ARCValidationPackages
Package Description |
|
|
AVPRClient.Interop
Mappings between the generated AVPR client and the portable validation-package model. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.3.0-preview.4 | 39 | 8/20/2026 |
| 0.3.0-preview.3 | 100 | 8/7/2026 |
| 0.3.0-preview.1 | 82 | 7/31/2026 |
| 0.2.1 | 278 | 12/4/2025 |
| 0.2.0 | 318 | 12/4/2025 |
| 0.1.2 | 1,308 | 6/21/2024 |
| 0.1.1 | 237 | 6/21/2024 |
| 0.1.0 | 233 | 6/21/2024 |
| 0.0.9 | 224 | 6/19/2024 |
| 0.0.8 | 215 | 6/18/2024 |
| 0.0.7 | 256 | 6/12/2024 |
| 0.0.6 | 236 | 6/11/2024 |
| 0.0.5 | 289 | 6/11/2024 |
| 0.0.4 | 415 | 3/5/2024 |
| 0.0.3 | 229 | 2/29/2024 |
| 0.0.2 | 293 | 2/29/2024 |
| 0.0.1 | 309 | 2/22/2024 |
## 0.3.0-preview.4 - 2026-08-14
- Add generated clients for package-index, version-list, and metadata-only
discovery endpoints.
- Mark the legacy all-content package collection operation as deprecated.
- Regenerate the client for the supported CWL v1.2 scalar `Inputs` contract.
- Move all handwritten model and staging mappings to `AVPRClient.Interop` and `AVPRCI`, leaving this package generated-only.
- Replace token-based publication with a manually approved, retry-safe NuGet
trusted-publishing workflow.
## v0.2.1
- fix : Correct `ProgrammingLanguage` field mapping in `ValidationPackage` type extension.
## v0.2.0
- Regen client for `ProgrammingLanguage` field
## v0.1.2
- Add more `IdentityEquals` extension methods to compare between `ValidationPackage` and `ValidationPackageIndex`
## v0.1.1
- Add `IdentityEquals` extension method for `ValidationPackage`
## v0.1.0
- Regen client for full semVer support (AVPRIndex >= 0.2.0)
## v0.0.9
- Use AVPRIndex for all package binary content extractions
## v0.0.8
- Use AVPRIndex for all package hash calculations
## v0.0.7
- Further TypeExtension improvements and fixes
## v0.0.6
- Fix some missing fields in type extensions
## v0.0.5
- Regen Client with new `CQCHookEndpoint` field in package metadata
## v0.0.4
- Add more interop extensions between AVPRClient and AVPRIndex
- Regen Client with new statistics API Endpoints
## v0.0.3
- Add extensions that connect AVPRIndex and AVPRClient types
## v0.0.2
- Regen with for additional metadata fields
## v0.0.1
- Initial release for AVPR API v1