Simplify.Web.Postman
Simplify.Web.Postman
is a package which provides Postman collection and environment generation extension for Simplify.Web web-framework controllers.
Quick Start
- Add
RegisterSimplifyWebPostman
to IOC container registrations.
public static class IocRegistrations
{
public static IDIContainerProvider RegisterAll(this IDIContainerProvider containerProvider)
{
containerProvider.RegisterSimplifyWeb()
.RegisterJsonModelBinder()
.RegisterSimplifyWebPostman();
return containerProvider;
}
}
- Add
GeneratePostmanData
after Simplify registration and container setup
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
app.UseDeveloperExceptionPage();
app.UseSimplifyWebWithoutRegistrations();
DIContainer.Current.RegisterAll().Verify();
if (env.IsDevelopment())
DIContainer.Current.GeneratePostmanData();
}
Postman files will be generated in postman
folder inside your app build folder.