Пример #1
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc()
            .SetCompatibilityVersion(CompatibilityVersion.Version_2_1);

            // Register the Swagger generator, defining 1 or more Swagger documents
            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc("v1", new Info
                {
                    Version = "v1",
                    Title   = "UserManagement API",
                });
            });
            DependencyContainerMapper.RegisterServices(services, Configuration);
        }
Пример #2
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc()
            .SetCompatibilityVersion(CompatibilityVersion.Version_2_1);


            services.AddSwaggerGen(c =>
            {
                c.SwaggerDoc("v1", new Info
                {
                    Version = "v1",
                    Title   = "SchoolPanda Resources API",
                });
                c.OperationFilter <FileCreationFilter>();
            });
            DependencyContainerMapper.RegisterServices(services, Configuration);
        }