Skip to content

Commit

Permalink
Update swagger generation
Browse files Browse the repository at this point in the history
  • Loading branch information
abrown3-nmdp committed Jun 19, 2017
1 parent cde062d commit c0dd4ef
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@
<inputSpec>src/main/resources/swagger/swagger-spec.hml.yaml</inputSpec>
<language>spring</language>
<modelPackage>org.nmdp.hmlfhirconvertermodels.dto.hml</modelPackage>
<apiPackage>io.swagger.api.hml</apiPackage>
<configOptions>
<serializableModel>true</serializableModel>
<library>spring-boot</library>
<sourceFolder>src/gen/java/main</sourceFolder>
<dateLibrary>legacy</dateLibrary>
<generateApi>false</generateApi>
</configOptions>
</configuration>
</execution>
Expand All @@ -84,12 +84,12 @@
<inputSpec>src/main/resources/swagger/swagger-spec.fhir.yaml</inputSpec>
<language>spring</language>
<modelPackage>org.nmdp.hmlfhirconvertermodels.dto.fhir</modelPackage>
<apiPackage>io.swagger.api.fhir</apiPackage>
<configOptions>
<serializableModel>true</serializableModel>
<library>spring-boot</library>
<sourceFolder>src/gen/java/main</sourceFolder>
<dateLibrary>legacy</dateLibrary>
<generateApi>false</generateApi>
</configOptions>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.swagger.api;

@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2017-06-01T16:31:18.928-05:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2017-06-19T09:52:56.035-05:00")

public class ApiException extends Exception{
private int code;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import javax.servlet.*;
import javax.servlet.http.HttpServletResponse;

@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2017-06-01T16:31:18.928-05:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2017-06-19T09:52:56.035-05:00")

public class ApiOriginFilter implements javax.servlet.Filter {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import javax.xml.bind.annotation.XmlTransient;

@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2017-06-01T16:31:18.928-05:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2017-06-19T09:52:56.035-05:00")

@javax.xml.bind.annotation.XmlRootElement
public class ApiResponseMessage {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.swagger.api;

@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2017-06-01T16:31:18.928-05:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2017-06-19T09:52:56.035-05:00")

public class NotFoundException extends ApiException {
private int code;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2017-06-18T17:13:04.053-05:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2017-06-19T09:52:56.035-05:00")

@Configuration
public class SwaggerDocumentationConfig {
Expand All @@ -31,7 +31,7 @@ ApiInfo apiInfo() {
public Docket customImplementation(){
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.basePackage("io.swagger.api.fhir"))
.apis(RequestHandlerSelectors.basePackage("io.swagger.api"))
.build()
.directModelSubstitute(org.joda.time.LocalDate.class, java.sql.Date.class)
.directModelSubstitute(org.joda.time.DateTime.class, java.util.Date.class)
Expand Down

0 comments on commit c0dd4ef

Please sign in to comment.