Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ievangelist/jwst-client
A "James Webb Space Telescope API" .NET Client Library
https://github.com/ievangelist/jwst-client
astronomy autoclient csharp dotnet james-webb jwst jwstapi space-telescopes
Last synced: 20 days ago
JSON representation
A "James Webb Space Telescope API" .NET Client Library
- Host: GitHub
- URL: https://github.com/ievangelist/jwst-client
- Owner: IEvangelist
- License: mit
- Created: 2023-08-01T03:31:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-02T20:29:50.000Z (over 1 year ago)
- Last Synced: 2024-10-06T07:41:18.659Z (about 1 month ago)
- Topics: astronomy, autoclient, csharp, dotnet, james-webb, jwst, jwstapi, space-telescopes
- Language: C#
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The "James Webb Space Telescope API" .NET Client Library
[![.NET](https://github.com/IEvangelist/jwst-client/actions/workflows/dotnet.yml/badge.svg)](https://github.com/IEvangelist/jwst-client/actions/workflows/dotnet.yml)
This is a .NET source-generated client library for the [James Webb Space Telescope API](https://api.jwstapi.com)
## Get started
Sign up for a free API key with an email address here https://jwstapi.com.
## Configure the API key
If you're using an _appsettings.json:_
```json
{
"JamesWebbApi": {
"Key": ""
}
}
```Or perhaps an environment variable:
```
setx JamesWebbApi__Key ""
```## Consumption
```csharp
var builder = Host.CreateApplicationBuilder(args);builder.Services.AddJameWebbClientServices(builder.Configuration);
using var host = builder.Build();
var client = host.Services.GetRequiredService();
// TODO: Use the client
```## Notes
This library relies on the following NuGet packages:
- 📦 [`Microsoft.Extensions.Compliance.Redaction`](https://nuget.org/packages/Microsoft.Extensions.Compliance.Redaction)
- 📦 [`Microsoft.Extensions.Http.AutoClient`](https://nuget.org/packages/Microsoft.Extensions.Http.AutoClient)
- 📦 [`Microsoft.Extensions.Http.Resilience`](https://nuget.org/packages/Microsoft.Extensions.Http.Resilience)
- 📦 [`Microsoft.Extensions.Http.Telemetry`](https://nuget.org/packages/Microsoft.Extensions.Http.Telemetry)
- 📦 [`Microsoft.Extensions.Options.ConfigurationExtension`](https://nuget.org/packages/Microsoft.Extensions.Options.ConfigurationExtension)