🔔 basic-error-controller 삭제
📌 적용 전
📌 적용 방법
.apis(RequestHandlerSelectors.basePackage("com.mutsasns"))
📌 적용 후
🔔 설명 부분 변경
📌 적용 전
📌 적용 방법
apiInfo() 추가
@Bean
public Docket api() {
return new Docket(DocumentationType.OAS_30).apiInfo(apiInfo())
.securityContexts(Arrays.asList(securityContext()))
.securitySchemes(Arrays.asList(apiKey()))
.select()
.apis(RequestHandlerSelectors.basePackage("com.mutsasns"))
.paths(PathSelectors.any())
.build();
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder().title(title)
.description("<h3>Swagger를 이용한 Mutsa-sns API</h3><img src=\"https://user-images.githubusercontent.com/114658792/211241943-4a1eb1a0-4b6a-450e-9877-4df1ef54229b.png\" width=150 height=150 />")
.contact(new Contact("KAHYUN", "https://velog.io/@gmeoq", "gmeoqq@gmail.com"))
.version("1.0").build();
}
📌 적용 후
🔔 controller 설명 추가
📌 적용 전
📌 적용 방법
@Api(tags ="5. 알람")
@Operation(summary = "알람 조회", description = "로그인 후, 내 게시물의 댓글, 좋아요 알람 조회")
📌 적용후
참고 1
참고 2
이미지 넣은게 졸귀탱이네여