https://github.com/rmja/droguecloud.client
A Drogue Cloud client for .NET
https://github.com/rmja/droguecloud.client
Last synced: over 1 year ago
JSON representation
A Drogue Cloud client for .NET
- Host: GitHub
- URL: https://github.com/rmja/droguecloud.client
- Owner: rmja
- License: mit
- Created: 2023-02-10T07:55:00.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-09T22:38:12.000Z (over 3 years ago)
- Last Synced: 2025-01-29T08:25:41.107Z (over 1 year ago)
- Language: C#
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DrogueCloud.Client
A .NET client for the DrogueCloud API ([see specification](https://book.drogue.io/drogue-cloud/dev/api/index.html)).
It uses HttpClientFactory and Refit.
## Example
```c#
var services = new ServiceCollection();
services.AddDrogueCloudManagementApi(options => {
options.Endpoint = "https://api.sandbox.drogue.cloud";
options.Username = "some-user";
options.Password = "some-password";
});
var provider = services.BuildServiceProvider();
var drogue = provider.GetRequiredService();
var app = await drogue.GetAppAsync("some-app");
```