var builder = DistributedApplication.CreateBuilder(args);
builder.AddProject("api")
.WithSwaggerUI();
builder.Build().Run();
GitHub上のドキュメントをスライド化しています
https://github.com/davidfowl/AspireSwaggerUI/master/README.mdを参照しています。
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("api")
.WithSwaggerUI();
builder.Build().Run();
0 回