Simplify.Web.Postman

Postman collection and environment generation extension for Simplify.Web


Keywords
API, Postman, Simplify.Web
License
LGPL-3.0
Install
Install-Package Simplify.Web.Postman -Version 1.1.0

Documentation

Simplify.Web.Postman

Nuget Version Nuget Download Build PackageLibraries.io dependency status for latest release CodeFactor Grade Platform PRs Welcome

Simplify.Web.Postman is a package which provides Postman collection and environment generation extension for Simplify.Web web-framework controllers.

Quick Start

  1. Add RegisterSimplifyWebPostman to IOC container registrations.
public static class IocRegistrations
{
 public static IDIContainerProvider RegisterAll(this IDIContainerProvider containerProvider)
 {
  containerProvider.RegisterSimplifyWeb()
   .RegisterJsonModelBinder()
   .RegisterSimplifyWebPostman();

  return containerProvider;
 }
}
  1. 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.