Skip to content

IEvangelist/jwst-client

Repository files navigation

The "James Webb Space Telescope API" .NET Client Library

.NET

This is a .NET source-generated client library for the James Webb Space Telescope API

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:

{
    "JamesWebbApi": {
        "Key": "<Your API Key>"
    }
}

Or perhaps an environment variable:

setx JamesWebbApi__Key "<Your API Key>"

Consumption

var builder = Host.CreateApplicationBuilder(args);

builder.Services.AddJameWebbClientServices(builder.Configuration);

using var host = builder.Build();

var client = host.Services.GetRequiredService<IJamesWebbClient>();

// TODO: Use the client

Notes

This library relies on the following NuGet packages:

Releases

No releases published

Packages

No packages published

Languages