Skip to content

SellerCloudTeam/SwaggerUI.Aspire.Hosting

 
 

Repository files navigation

SwaggerUI.Aspire.Hosting

This repository shows a sample of how use aspire to show a swagger ui for any resource that exposes an open api endpoint.

Just add WithSwaggerUI() to any project resource builder and you are good to go!

var builder = DistributedApplication.CreateBuilder(args);

builder.AddProject<Projects.AspireSwaggerUi_ApiService>("api")
    .WithSwaggerUI();

builder.Build().Run();

About

An aspire resource for showing swagger ui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%