package org.nmdp.hmlfhirconverter.config;

/**
 * Created by abrown3 on 12/21/16.
 */

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
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.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class SwaggerConfig {

    @Bean
    public Docket api() {
        return new Docket(DocumentationType.SWAGGER_2)
                .select()
                .apis(RequestHandlerSelectors.basePackage("org.nmdp.hmlfhirconverter"))
                .paths(PathSelectors.ant("/v1/**"))
                .build()
                .apiInfo(getApiInfo());
    }

    private ApiInfo getApiInfo() {
        return new ApiInfo("Hml to Fhir Conversion Service",
                "Service to support web-hmlFhirAngularClient",
                "0.0.1",
                null,
                new Contact("Andrew S. Brown, Ph.D.", null, "abrown3@nmdp.org"),
                "Copyright NMDP",
                "CC Non-commercial Non-Redistributable");
    }
}

@@ -58,28 +58,1030 @@
  by 
-abrown3 on 12/21/16.
+Andrew S. Brown, Ph.D., %3Cabrown3@nmdp.org%3E, on 1/20/17.%0A * %3Cp%3E%0A * service-hmlFhirConverter%0A * Copyright (c) 2012-2017 National Marrow Donor Program (NMDP)%0A * %3Cp%3E%0A * This library is free software; you can redistribute it and/or modify it%0A * under the terms of the GNU Lesser General Public License as published%0A * by the Free Software Foundation; either version 3 of the License, or (at%0A * your option) any later version.%0A * %3Cp%3E%0A * This library is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; with out even the implied warranty of MERCHANTABILITY or%0A * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public%0A * License for more details.%0A * %3Cp%3E%0A * You should have received a copy of the GNU Lesser General Public License%0A * along with this library;  if not, write to the Free Software Foundation,%0A * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.%0A * %3Cp%3E%0A * %3E http://www.fsf.org/licensing/licenses/lgpl.html%0A * %3E http://www.opensource.org/licenses/lgpl-license.php
 %0A */

Update header