A .Net library to generate AsyncAPI 2.0 documentation by code first, to easily share and maintain your event-driven architecture.
-
Download the repo
-
Run AsyncAPI.NET.UI.Sample
-
And see : 🚧 add screenshoots
-
Install the standard Nuget package into your ASP.NET Core application.
🚧 CLI : dotnet add package --version ?.?.? AsyncAPI.Net.UI
-
Add import
using AsyncApi.Net.Ui.Extensions; using AsyncApi.Net.Ui.Models;
-
In the
ConfigureServices(IServiceCollection services)
method ofStartup.cs
, register the AsyncApiDoc generator, defining one or more AsyncApiDoc documents.services.AddMvc(); services.AddAsyncApiDocumentation(new AsyncApiDocInfo() { Title = "My title AsyncAPI", Description = "The great description of the my AcyncApi", ContactName = "Crazy Coder", ContactUrl = "https://www.microsoft.com/" });
-
In the
Configure(IApplicationBuilder app, IApiVersionDescriptionProvider provider)
method ofStartup.cs
, MapRazorPagesapp.UseRouting(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); endpoints.MapRazorPages(); });
- the project is still in alpha check the roadmap
- AsyncApi : https://www.asyncapi.com/en
- AsyncApi Studio : https://www.asyncapi.com/en
- AsyncAPI.NET : https://github.com/LEGO/AsyncAPI.NET