// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, IServiceProvider appServices) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseHttpsRedirection(); // Register the Swagger generator and the Swagger UI middlewares app.UseSwaggerUi3WithApiExplorer(settings => { settings.GeneratorSettings.DefaultPropertyNameHandling = PropertyNameHandling.CamelCase; settings.GeneratorSettings.DefaultEnumHandling = EnumHandling.String; settings.PostProcess = document => { document.Info.Title = "MicroFlow"; document.Info.Version = "0.1.0"; document.Info.Description = "See the project's repo on GitHub. Click the link below."; document.Info.Contact = new NSwag.SwaggerContact { Name = "Miguel Veloso", Url = "https://github.com/mvelosop/MicroFlow" }; }; }); app.UseMvc(); _appStartup.SetupDatabase(appServices); }