Skip to content

Commit f64fe18

Browse files
committed
docs: Add page FAQ
1 parent a28ab73 commit f64fe18

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

docs/documenting-producers.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ public void sendMessage(ExamplePayloadDto msg) {
4141
}
4242
```
4343

44+
:::note
45+
Springwolf only finds methods that are within the `base-package`.
46+
:::
47+
4448
### Channel Name
4549

4650
The channel name (or topic name in case of Kafka) - this is the name that will be used to publish messages to by the UI.

docs/faq.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
sidebar_position: 10
3+
---
4+
5+
# Frequently Asked Questions
6+
7+
## General
8+
9+
### Is springwolf free? What is the license?
10+
11+
Yes, you can use springwolf for private and commercial purposes as long as you comply to the [Apache License 2.0](https://github.com/springwolf/springwolf-core/blob/master/LICENSE).
12+
13+
## Troubleshooting
14+
15+
### The springwolf UI is not showing
16+
17+
When the `springwolf-ui` dependency is added, the ui should be visible at [http://localhost:8080/springwolf/asyncapi-ui.html](http://localhost:8080/springwolf/asyncapi-ui.html).
18+
19+
If not, check
20+
1. the spring `context-path` setting
21+
2. if static assets are being served. See the code below:
22+
```java
23+
@Configuration
24+
public class WebConfig implements WebMvcConfigurer {
25+
26+
@Override
27+
public void addResourceHandlers(ResourceHandlerRegistry registry) {
28+
registry
29+
.addResourceHandler("/**")
30+
.addResourceLocations("classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/");
31+
}
32+
}
33+
```
34+
35+
Taken from [Discord Chat](https://discord.com/channels/950375987475005471/950375988217409548/1051909821848363038)
36+
37+
## Usage Patterns
38+
39+
### How to access the generated documentation within java?
40+
41+
Use the `AsyncApiService` to access the generated documentation.

docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ springwolf.docket.servers.kafka.protocol=kafka
4848
springwolf.docket.servers.kafka.url=${kafka.bootstrap.servers:localhost:29092}
4949
```
5050

51-
*Make sure to change the value of `springwolf.docket.base-package` to the package containing your listeners.*
51+
*Make sure to change the value of `springwolf.docket.base-package` to the package containing your listeners, so that springwolf will automatically pick them up.*
5252

5353
## View the docs
5454
After starting the application, visit `<host>:<port>/springwolf/asyncapi-ui.html` to view the UI or `<host>:<port>/springwolf/docs` to view the raw AsyncAPI document.

0 commit comments

Comments
 (0)