cant test locally #13

Merged
hirst merged 3 commits from worky into dev 2024-06-05 08:51:07 +02:00
Showing only changes of commit 5de3ab0a8f - Show all commits

View file

@ -3,17 +3,26 @@ package com.learningpulse.gateway.config;
import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact; import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info; 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.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.List;
@Component @Component
@Configuration @Configuration
public class OpenAPIConfiguration { public class OpenAPIConfiguration {
@Bean @Bean
public OpenAPI gatewayOpenAPI() { public OpenAPI gatewayOpenAPI() {
return new OpenAPI().info(new Info() return new OpenAPI()
.servers(
List.of(
new Server().url("https://lpdev.4o1x5.dev").description("Development server")
)
)
.info(new Info()
.title("Learning Pulse API documentation") .title("Learning Pulse API documentation")
.version("0.0.1") .version("0.0.1")
.description("This is the API documentation for the Learning Pulse project.") .description("This is the API documentation for the Learning Pulse project.")