File tree 2 files changed +13
-2
lines changed
samples/restdocs-api-spec-sample
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -483,6 +483,10 @@ openapi3 {
483
483
title = ' My API title'
484
484
version = ' 1.0.1'
485
485
format = ' yaml'
486
+ contact = {
487
+ name = ' John Doe'
488
+
489
+ }
486
490
separatePublicApi = true
487
491
outputFileNamePrefix = ' my-api-spec'
488
492
oauth2SecuritySchemeDefinition = {
Original file line number Diff line number Diff line change
1
+ import com.epages.restdocs.apispec.gradle.RestdocsApiSpecPlugin
2
+ import io.swagger.v3.oas.models.info.Contact
3
+
1
4
buildscript {
2
5
ext {
3
6
springBootVersion = ' 2.1.9.RELEASE'
@@ -8,14 +11,14 @@ buildscript {
8
11
}
9
12
dependencies {
10
13
classpath(" org.springframework.boot:spring-boot-gradle-plugin:${ springBootVersion} " )
11
- classpath( " com.epages :restdocs-api-spec-gradle-plugin:0.9.5 " )
14
+ classpath project( " :restdocs-api-spec-gradle-plugin" )
12
15
}
13
16
}
14
17
15
18
apply plugin : ' java'
16
19
apply plugin : ' org.springframework.boot'
17
20
apply plugin : ' io.spring.dependency-management'
18
- apply plugin : ' com.epages.restdocs-api-spec '
21
+ apply plugin : RestdocsApiSpecPlugin
19
22
20
23
sourceCompatibility = 1.8
21
24
@@ -59,6 +62,10 @@ openapi3 {
59
62
title = ' My API'
60
63
description = ' An ecommerce sample demonstrating restdocs-api-spec'
61
64
version = ' 0.1.0'
65
+ contact = {
66
+ name = ' John Doe'
67
+
68
+ }
62
69
format = ' yaml'
63
70
tagDescriptionsPropertiesFile = " src/test/resources/tags.yaml"
64
71
}
You can’t perform that action at this time.
0 commit comments