Skip to content

Commit

Permalink
feat: swagger config 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
capDoYeonLee committed Aug 10, 2024
1 parent 4a5d086 commit cdfd3e2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions BE/error/src/main/java/com/example/demo/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.example.demo.config;


import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig {

@Bean
public OpenAPI openAPI() {
return new OpenAPI().components(new Components()).info(apiInfo());
}

private Info apiInfo() {
return new Info().title("ERROR API").description("ERROR Swagger").version("2.0.0");
}
}

0 comments on commit cdfd3e2

Please sign in to comment.