-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: optimize Dockerfile commands and improve security configura…
…tion methods
- Loading branch information
1 parent
46b4435
commit b7e4bfc
Showing
15 changed files
with
261 additions
and
262 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
22 changes: 11 additions & 11 deletions
22
src/main/java/leonardo/labutilities/qualitylabpro/configs/docs/SpringDocConfiguration.java
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,30 +1,30 @@ | ||
package leonardo.labutilities.qualitylabpro.configs.docs; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import io.swagger.v3.oas.annotations.OpenAPIDefinition; | ||
import io.swagger.v3.oas.models.Components; | ||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Contact; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import io.swagger.v3.oas.models.info.License; | ||
import io.swagger.v3.oas.models.security.SecurityScheme; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
@OpenAPIDefinition | ||
public class SpringDocConfiguration { | ||
@Bean | ||
public OpenAPI customOpenAPI() { | ||
OpenAPI customOpenAPI() { | ||
return new OpenAPI() | ||
.components(new Components().addSecuritySchemes("bearer-key", | ||
new SecurityScheme().type(SecurityScheme.Type.HTTP).scheme("bearer") | ||
.bearerFormat("JWT"))) | ||
new SecurityScheme().type(SecurityScheme.Type.HTTP).scheme("bearer") | ||
.bearerFormat("JWT"))) | ||
.info(new Info().title("QualityLab-Pro API").version("2.0").description( | ||
"REST API for operations on analytical test specifications and internal " + | ||
"control data") | ||
.contact(new Contact().name("Leonardo Meireles") | ||
.email("[email protected]")) | ||
.license(new License().name("Apache 2.0") | ||
.url("http://labutilities/api/license"))); | ||
"REST API for operations on analytical test specifications and internal " | ||
+ "control data") | ||
.contact(new Contact().name("Leonardo Meireles") | ||
.email("[email protected]")) | ||
.license(new License().name("Apache 2.0") | ||
.url("http://labutilities/api/license"))); | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.