package ${basePackage};

import com.chequer.axboot.core.parameter.RequestParams;
import com.mangofactory.swagger.configuration.SpringSwaggerConfig;
import com.mangofactory.swagger.models.dto.ApiInfo;
import com.mangofactory.swagger.plugin.EnableSwagger;
import com.mangofactory.swagger.plugin.SwaggerSpringMvcPlugin;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.core.annotation.AuthenticationPrincipal;

import javax.inject.Inject;


@Configuration
@EnableSwagger
public class AXBootSwaggerConfig {
    @Inject
    private SpringSwaggerConfig springSwaggerConfig;

    @Bean
    public SwaggerSpringMvcPlugin customImplementation() {
        return new SwaggerSpringMvcPlugin(this.springSwaggerConfig)
                .apiInfo(new ApiInfo("API", "API", "", "", "", ""))
                .includePatterns("/api/v1.*")
                .ignoredParameterTypes(AuthenticationPrincipal.class, RequestParams.class);
    }
}

@@ -2,16 +2,69 @@
 ackage $
+%0A%0Aimport com.mangofactory.swagger.models.dto.ApiInfo;
 %7BbasePac
@@ -895,17 +895,46 @@
 o(%22A
-PI%22, %22API
+XBoot API Swagger%22, %22API Demonstration
 %22, %22

update template