티스토리 뷰
728x90
springdoc:
swagger-ui:
url: /docs/merged
path: /
api-docs:
custom:
title: API Test
version: 1.0
description: API Test
service: http://test.seunggabi.com
name: test
url: https://github.com/seunggabi/test
email: seunggabi@gmail.com
@Bean
@Order(-1)
@RouterOperations(
RouterOperation(
path = TEST_V1,
method = [RequestMethod.GET],
operation = Operation(
operationId = TEST_V1,
tags = ["test", "v1"],
parameters = [
Parameter(
name = "start",
`in` = ParameterIn.QUERY,
required = false,
example = "1"
),
Parameter(
name = "display",
`in` = ParameterIn.QUERY,
required = false,
example = "20"
)
],
responses = [
ApiResponse(
responseCode = "200",
),
ApiResponse(
responseCode = "404",
)
]
)
),
)
@Configuration
@EnableConfigurationProperties(DocsProperties::class)
class DocsConfig(
val properties: DocsProperties
) {
@Bean
fun openAPI(): OpenAPI {
with(properties) {
val info = Info()
.title(title)
.version(version)
.description(description)
.termsOfService(service)
.contact(
Contact()
.name(name)
.url(url)
.email(email)
)
.license(
License()
.name("Apache License Version 2.0")
.url("http://www.apache.org/licenses/LICENSE-2.0")
)
return OpenAPI()
.info(info)
}
}
}
728x90
'공부' 카테고리의 다른 글
[k8s] NodePort(node), Port(service), TargetPort(pod) (0) | 2022.07.10 |
---|---|
[kotlin] coding convention (0) | 2022.07.10 |
[JPA] manual SQL (nativeQuery=True) (0) | 2022.07.10 |
[js] npm(직렬) vs yarn(병렬) (0) | 2022.07.10 |
[kotlin] ReflectionUtils.kt (0) | 2022.07.09 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 팔로워 수 세기
- Bot
- COUNT
- 테슬라 크레딧 사용
- 클루지
- 테슬라 리퍼럴 코드
- 책그림
- 테슬라 레퍼럴
- 테슬라 레퍼럴 코드 확인
- follower
- 테슬라 레퍼럴 적용 확인
- Kluge
- 개리마커스
- 인스타그램
- 테슬라 추천
- 할인
- 어떻게 능력을 보여줄 것인가?
- 김달
- 모델 Y 레퍼럴
- 모델y
- 테슬라
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 리퍼럴 코드 생성
- 테슬라 리퍼럴 코드 혜택
- 유투브
- 레퍼럴
- 연애학개론
- wlw
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함