-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
indraniBan
authored and
indraniBan
committed
Aug 11, 2024
1 parent
32ed481
commit 0d040e0
Showing
5 changed files
with
74 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,24 @@ | ||
/* | ||
* AMRIT – Accessible Medical Records via Integrated Technology Integrated EHR | ||
* (Electronic Health Records) Solution | ||
* | ||
* Copyright (C) "Piramal Swasthya Management and Research Institute" | ||
* | ||
* This file is part of AMRIT. | ||
* | ||
* This program is free software: you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License as published by the Free Software | ||
* Foundation, either version 3 of the License, or (at your option) any later | ||
* version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | ||
* details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* this program. If not, see https://www.gnu.org/licenses/. | ||
* | ||
* package com.wipro.fhir.config; | ||
* | ||
* import org.springframework.context.annotation.Bean; import | ||
* org.springframework.context.annotation.Configuration; | ||
* | ||
* 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 productApi() { return new | ||
* Docket(DocumentationType.SWAGGER_2).select() | ||
* .apis(RequestHandlerSelectors.basePackage("com.wipro.fhir.controller")).build | ||
* ().apiInfo(metaData()); } | ||
* | ||
* private ApiInfo metaData() { ApiInfo apiInfo = new ApiInfo("FHIR API", | ||
* "Service that implements FHIR standard for healthcare information exchange between various systems that are used by clinicians and organisations." | ||
* , "1.0", "Terms of service", new Contact("AMRIT", | ||
* "https://psmri.github.io/PSMRI/", "[email protected]"), "", ""); | ||
* return apiInfo; } } | ||
*/ | ||
package com.wipro.fhir.config; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import io.swagger.v3.oas.models.Components; | ||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import io.swagger.v3.oas.models.security.SecurityRequirement; | ||
import io.swagger.v3.oas.models.security.SecurityScheme; | ||
|
||
@Configuration | ||
public class SwaggerConfig { | ||
|
||
@Bean | ||
public OpenAPI customOpenAPI() { | ||
return new OpenAPI().info(new | ||
Info().title("FHIR API").version("version").description("A microservice for the creation and management of beneficiaries.")) | ||
.addSecurityItem(new SecurityRequirement().addList("my security")) | ||
.components(new Components().addSecuritySchemes("my security", | ||
new SecurityScheme().name("my security").type(SecurityScheme.Type.HTTP).scheme("bearer"))); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
src/test/java/com/wipro/fhir/config/BlockingHttpMethodInterceptorTest.java
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
src/test/java/com/wipro/fhir/config/InterceptorConfigTest.java
This file was deleted.
Oops, something went wrong.