Skip to content

Commit

Permalink
feat: swagger 사용을 위한 config 파일 #20
Browse files Browse the repository at this point in the history
  • Loading branch information
heokyeongju committed Nov 7, 2022
1 parent 25b6616 commit 8d60479
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.mutbook.week4_mission.app.springDoc;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.security.SecurityScheme;
import org.springframework.context.annotation.Configuration;

@Configuration
@OpenAPIDefinition(info = @Info(title = "MBOOKS API", version = "v1"))
@SecurityScheme(
name = "bearerAuth",
type = SecuritySchemeType.HTTP,
bearerFormat = "JWT",
scheme = "bearer"
)
public class SpringDocConfig {
}

0 comments on commit 8d60479

Please sign in to comment.