You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a full example, check the [springwolf-kafka-example ApiIntegrationTest](https://github.com/springwolf/springwolf-core/blob/master/springwolf-examples/springwolf-kafka-example/src/test/java/io/github/springwolf/examples/kafka/ApiIntegrationTest.java)
25
+
See [Static Generation](static-generation.md).
57
26
58
27
## Troubleshooting
59
28
@@ -115,8 +84,8 @@ Springwolf uses `swagger-core` to analyze classes, which is used by some OpenAPI
115
84
116
85
Options:
117
86
118
-
1.Use the same settings in Springwolf and the other library (including the [fully qualified classname (FQN) option (`springwolf.use-fqn=false`)](configuration/configuration.mdx)).
119
-
2. Don't run Springwolf and the other library at the same time, for example by generating the documentation at build time.
87
+
1.Use the same settings in Springwolf and the other library (including the [fully qualified classname (FQN) option](configuration/configuration.mdx)).
88
+
2. Don't run Springwolf and the other library at the same time, for example by [generating the documentation at build time](static-generation.md).
The [`springwolf-kafka-example`](https://github.com/springwolf/springwolf-core/blob/master/springwolf-examples/springwolf-kafka-example/build.gradle)
176
-
contains a working example.
177
-
178
-
The plugin will startup the spring boot application by using the `bootRun` task and then try to download the documentation
179
-
from the given `apiDocsUrl` and store it in the `outputDir` and with the given `outputFileName`.
180
-
181
-
If your application is unable to start up with the `bootRun` task, see if [customBootRun](https://github.com/springdoc/springdoc-openapi-gradle-plugin#customization)
182
-
properties can help you.
183
-
184
129
## ReleaseNotes/MigrationGuide/Updating/Upgrading
185
130
186
131
Releases are managed in [GitHubReleases](https://github.com/springwolf/springwolf-core/releases),
String actual =newDefaultAsyncApiSerializerService().toJsonString(asyncApi);
64
65
65
66
// then
@@ -74,15 +75,15 @@ class StandaloneTest {
74
75
}
75
76
```
76
77
77
-
By default, only the `io.github.springwolf` package is scanned and `@StandaloneConfiguration` in other packages _not_ picked up.
78
-
Use the `DefaultStandaloneFactory` constructor to customize the Spring environment, loaded custom beans and configurations.
78
+
By default, only the `io.github.springwolf` package is scanned and `@StandaloneConfiguration` in other packages are _not_ picked up.
79
+
Use the `DefaultStandaloneApplication.builder()`to customize the Spring environment, load custom beans and configurations.
79
80
80
-
The [`application.properties` configuration](configuration/configuration.mdx)are picked up.
81
+
The [`application.properties` configuration](configuration/configuration.mdx)is picked up.
81
82
82
83
## Gradle Plugin (full spring context)
83
84
84
85
You can use the [`springdoc-openapi-gradle-plugin`](https://github.com/springdoc/springdoc-openapi-gradle-plugin) and configure the plugin
85
-
for Springwolf by pointing it to the Springwolf docs endpoint:
86
+
for Springwolf (taken from [`springwolf-kafka-example`](https://github.com/springwolf/springwolf-core/blob/master/springwolf-examples/springwolf-kafka-example/build.gradle)):
86
87
87
88
```groovy
88
89
openApi {
@@ -92,9 +93,6 @@ openApi {
92
93
}
93
94
```
94
95
95
-
The [`springwolf-kafka-example`](https://github.com/springwolf/springwolf-core/blob/master/springwolf-examples/springwolf-kafka-example/build.gradle)
96
-
contains a working example.
97
-
98
96
The plugin will start up the spring boot application by using the `bootRun` task and then try to download the documentation
99
97
from the given `apiDocsUrl` and store it in the `outputDir` and with the given `outputFileName`.
0 commit comments