updated OpenAPIConfiguration.java and hopefully added cache
All checks were successful
build and publish docker image / deploy / build (pull_request) Successful in 1m59s
All checks were successful
build and publish docker image / deploy / build (pull_request) Successful in 1m59s
This commit is contained in:
parent
5de3ab0a8f
commit
2d807eac48
1
.github/workflows/build_deploy_dev.yml
vendored
1
.github/workflows/build_deploy_dev.yml
vendored
|
@ -32,6 +32,7 @@ jobs:
|
|||
with:
|
||||
java-version: "22"
|
||||
distribution: "temurin"
|
||||
cache: maven
|
||||
|
||||
- name: Setup maven
|
||||
if: steps.maven-cache.outputs.cache-hit != 'true'
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
package com.learningpulse.dummy.config;
|
||||
|
||||
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.servers.Server;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Component
|
||||
@Configuration
|
||||
public class OpenAPIConfiguration {
|
||||
@Bean
|
||||
public OpenAPI gatewayOpenAPI() {
|
||||
return new OpenAPI()
|
||||
.servers(
|
||||
List.of(
|
||||
new Server().url("https://lpdev.4o1x5.dev").description("Development server")
|
||||
)
|
||||
)
|
||||
.info(new Info()
|
||||
.title("Learning Pulse API documentation")
|
||||
.version("0.0.1")
|
||||
.description("This is the API documentation for the dummy microservice.")
|
||||
.contact(new Contact()
|
||||
.name("Learning Pulse")
|
||||
.url("https://git.4o1x5.dev/LearningPulse"))
|
||||
);
|
||||
}
|
||||
}
|
Reference in a new issue