SimplifyNet / Simplify.Web.Postman

Postman collection and environment generation extension for Simplify.Web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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()
   .RegisterSimplifyWebPostman();

  return containerProvider;
 }
}
  1. Use GeneratePostmanData after Simplify registration and container setup
DIContainer.Current
    .RegisterAll()
    .Verify();

var builder = WebApplication.CreateBuilder(args);

var app = builder.Build();

if (builder.Environment.IsDevelopment())
    DIContainer.Current.GeneratePostmanData();

app.UseSimplifyWeb();

await app.RunAsync();
}

Postman files will be generated in postman folder inside your app build folder.

About

Postman collection and environment generation extension for Simplify.Web.

License:GNU Lesser General Public License v3.0


Languages

Language:C# 100.0%