gosolve-org / Clients

Client Packages used for communicating with services for goSolve's back-end services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

goSolve - Clients

This repository includes the client packages used for communicating from goSolve back-end services to other (goSolve or external) services. Clients can include HttpClients, SftpClients, BlobClients, etc.

Adding a HttpClient to your project

To register a HttpClient in your Program.cs for dependency injection, use the following extension method (Book api as example):

builder.Services.AddInternalHttpClient<IBookHttpClient, BookHttpClient>(builder.Configuration, "book");

And add the following to your appsettings.json and appsettings.Development.json:

{
    "HttpClients": [
        {
            "Name": "book",
            "BaseAddressUri": "<base address of the api>", // Example: "https://localhost:5001/" (trailing slash is required!)
            "Accept": "application/json" // (Optional, default value: "application/json")
        }
    ]
}

License

License: AGPL v3
goSolve is open-source. We use the GNU AGPLv3 licensing strategy.

About

Client Packages used for communicating with services for goSolve's back-end services.

License:GNU Affero General Public License v3.0


Languages

Language:C# 100.0%