// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddControllers(); #region IoC IoCConfiguration.Register(services); #endregion #region AutoMapper services.AddSingleton(AutoMapperConfiguration.Register()); #endregion #region Swagger services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo { Title = "Cálculo de Juros Compostos", Version = "v1", Description = "API REST criada com o ASP.NET Core 3.1 para Cálculo de Juros Compostos", Contact = new OpenApiContact { Name = "Anderson Isidoro", Email = "*****@*****.**", Url = new Uri("https://github.com/isidorodeveloper/calcula-juros/tree/master") } }); }); #endregion }