Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.03 KB

File metadata and controls

42 lines (25 loc) · 1.03 KB

WebAPIDocsExtensionAspire

NuGet

Extension methods for integrating OpenAPI/Swagger SDK generation into .NET Aspire distributed applications.

Features

  • Add OpenAPI Generator as a container resource
  • Generate SDK clients for your APIs automatically
  • Download generated SDKs to your project
  • Logging and health check integration

Installation

Install via NuGet:

dotnet add package WebAPIDocsExtensionAspire

Usage

using WebAPIDocsExtensionAspire;

var builder = DistributedApplication.CreateBuilder(args);

var apiService = builder.AddProject<Projects.MyApi>("api");

apiService.AddSDKGeneration_openapitools(apiService);

builder.Build().Run();

Result

Naive

License

This project is licensed under the MIT License. See LICENSE.txt for details.