package org.carlspring.strongbox.config;

import java.util.Collections;

import com.google.common.collect.Sets;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger.web.UiConfiguration;
import springfox.documentation.swagger.web.UiConfigurationBuilder;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class SwaggerConfig {

    @Value("${strongbox.version}")
    public String strongboxVersion;

    @Bean
    public Docket strongboxApiDocket() {
        Contact contact = new Contact("Martin Todorov",
                                      "http://github.com/strongbox/strongbox/",
                                      "carlspring@gmail.com");
        ApiInfo apiInfo = new ApiInfo("Carlspring Consulting &amp; Development Ltd.",
                                      "This is the documentation of Strongbox's REST API.",
                                      strongboxVersion,
                                      "http://github.com/strongbox/strongbox/",
                                      contact,
                                      "Apache 2.0",
                                      "http://www.apache.org/licenses/LICENSE-2.0.html",
                                      Collections.EMPTY_LIST
                                      );
        return new Docket(DocumentationType.SWAGGER_2)
                .protocols(Sets.newHashSet("http", "https"))
                .host("carlspring.org")
                .pathMapping("/strongbox")
                .apiInfo(apiInfo);
    }

    @Bean
    public UiConfiguration uiConfiguration() {
        return UiConfigurationBuilder.builder()
                .build();
    }
}

@@ -738,17 +738,17 @@
 erConfig
- 
+%0A
 %7B%0A%0A    @
@@ -862,16 +862,20 @@
 Docket()
+%0A   
  %7B%0A     
@@ -912,22 +912,17 @@
 ct(%22
-Martin Todorov
+Strongbox
 %22,%0A 
@@ -1039,16 +1039,30 @@
        %22
+strongbox-dev@
 carlspri
@@ -1067,14 +1067,8 @@
 ring
-@gmail
 .com
@@ -1633,16 +1633,18 @@
 PTY_LIST
+);
 %0A       
@@ -1648,40 +1648,8 @@
     
-                              );
 %0A   
@@ -1699,33 +1699,16 @@
 AGGER_2)
-%0A                
 .protoco
@@ -1764,32 +1764,108 @@
     
-.host(%22carlspring.org%22)%0A
+                                      .host(%22carlspring.org%22)%0A                                      
     
@@ -1903,16 +1903,54 @@
 ngbox%22)%0A
+                                      
         
@@ -2037,16 +2037,20 @@
 ration()
+%0A   
  %7B%0A     
@@ -2091,33 +2091,16 @@
 uilder()
-%0A                
 .build()
@@ -2107,10 +2107,15 @@
 ;%0A    %7D%0A
+    %0A
 %7D%0A

Update SwaggerConfig.java