Merge pull request 'cant test locally' (#13) from worky into dev
All checks were successful
build and publish docker image / deploy / build (push) Successful in 2m10s
All checks were successful
build and publish docker image / deploy / build (push) Successful in 2m10s
Reviewed-on: #13 Reviewed-by: Seiwy <bmate20050911@gmail.com>
This commit is contained in:
commit
b3ce033bcf
|
@ -3,17 +3,26 @@ package com.learningpulse.gateway.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().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")
|
||||
.version("0.0.1")
|
||||
.description("This is the API documentation for the Learning Pulse project.")
|
||||
|
|
Reference in a new issue