Adds DuplicatiServerClient for API interaction

Introduces a `DuplicatiServerClient` to interact with the Duplicati server API, including authentication and various V1/V2 endpoints.

Adds `ServerCredentialType` to specify the authentication mechanism (Password or Token).

Includes a usage example to demonstrate client capabilities.
This commit is contained in:
Marcelo C.
2025-07-09 17:28:15 -03:00
parent 0501ab745a
commit 2995cc284a
6 changed files with 1554 additions and 2 deletions
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Duplicati\WebserverCore\Duplicati.WebserverCore.csproj" />
</ItemGroup>
</Project>