Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.57 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.57 KB

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: