Skip to content

Latest commit

 

History

History

AVPRClient

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

AVPR Client

.NET client library for https://avpr.nfdi4plants.org.

Generated with NSwag based on the OpenAPI specification.

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

in project root of AVPRClient:

<path to nswag tool>\NSwag\Net80\dotnet-nswag.exe openapi2csclient /input:https://avpr.nfdi4plants.org/swagger/v1/swagger.json /namespace:AVPRClient /output:AVPRClient.cs