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
Copy file name to clipboardExpand all lines: docs/configuration/configuration.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ There are 2 ways to configure Springwolf which can't be combined:
31
31
32
32
It's recommended to structure the project such that all consumers and producers (classes containing listener/producer methods) are in the same package - it's not mandatory, and if they're scattered across multiple packages, just provide the highest in hierarchy package that contains all classes.
33
33
34
-
The base package will be scanned for classes containing `@Component` annotated classes (that includes `@Service` annotated classes) for methods annotated with `@KafkaListener`, `@RabbitListener`, `@AsyncListener`, `@AsyncPublisher`, etc.
34
+
The base package will be scanned for classes containing `@Component` annotated classes (that includes `@Service` annotated classes) for methods annotated with `@KafkaListener`, `@RabbitListener`, `@SqsListener`, `@AsyncListener`, `@AsyncPublisher`, etc.
35
35
36
36
### `id`
37
37
@@ -75,6 +75,11 @@ The following table contains additional properties that can be specified in the
75
75
|`springwolf.plugin.kafka.publishing.enabled`|`false`| Allow (anyone) to produce Kafka messages from the UI. *Note that this has security implications*|
76
76
|`springwolf.plugin.kafka.publishing.producer`|`null`| Configure the Kafka producer used to publish messages from the UI. Uses identical parameters as `spring.kafka.producer`|
77
77
|`springwolf.plugin.kafka.scanner.kafka-listener.enabled`|`true`| Enable scanner to find methods annotated with `@KafkaListener`. |
78
+
|**SQS**|||
79
+
|`springwolf.plugin.sqs.publishing.enabled`|`false`| Allow (anyone) to produce SQS messages from the UI. *Note that this has security implications*|
80
+
|`springwolf.plugin.sqs.scanner.sqs-listener.enabled`|`true`| Enable scanner to find methods annotated with `@SqsListener`. |
Copy file name to clipboardExpand all lines: docs/configuration/documenting-consumers.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ For these use-cases, Springwolf provides additional ways to explicitly add them
12
12
To document consumers, either:
13
13
- add the `@AsyncListener` annotation or
14
14
- declare the `ConsumerData` object as part of the `AsyncApiDocket` or
15
-
- rely on the auto-detection of `@KafkaListener`, `@RabbitListener`
15
+
- rely on the auto-detection of `@KafkaListener`, `@RabbitListener`, `@SqsListener`
16
16
17
17
You are free to use all options together. Per channel and operation, first `ConsumerData` is used, then `@AsyncListener` and last the auto-detected annotations.
18
18
@@ -172,8 +172,8 @@ The above Kafka `ConsumerData` simplifies to the following `KafkaConsumerData`:
172
172
```
173
173
174
174
175
-
## Option 3: `@KafkaListener`, `@RabbitListener`
176
-
The `@KafkaListener` and `@RabbitListener` annotations are detected automatically.
Copy file name to clipboardExpand all lines: docs/introduction/introduction.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ sidebar_position: 10
8
8
API Documentation is an important part of every project and product, but can be painful to maintain manually.
9
9
Spring Boot projects have great solutions for auto-generated documentation for REST APIs to overcome this pain (such as Springfox, or springdoc-openapi).
10
10
11
-
However, until now there were no solutions for asynchronous APIs (such as Kafka, AMQP etc.). Springwolf aims to solve this and provides auto-generated documentation for asynchronous APIs built in Spring Boot.
11
+
However, until now there were no solutions for asynchronous APIs (such as AMQP, Kafka, SQS, etc.). Springwolf aims to solve this and provides auto-generated documentation for asynchronous APIs built in Spring Boot.
12
12
13
13
Springwolf is compliant to [AsyncAPI](https://www.asyncapi.com), which brings the [swagger/OpenAPI](https://www.asyncapi.com/docs/tutorials/getting-started/coming-from-openapi) specification you know already from REST APIs into the world of event-driven architectures.
Check out the example projects, which include a full `docker-compose` setup.
22
+
The examples are simple, easy to start with, good for testing and reproducing bugs.
12
23
13
24
Please [open an issue](https://github.com/springwolf/springwolf-core/issues/new) if you want a protocol to be supported.
14
25
26
+
## Any protocol
27
+
28
+
Using [`@AsyncListener`](../configuration/documenting-consumers.md) and [`@AsyncPublisher`](../configuration/documenting-producers.md) any protocol can be documented, although the binding in the AsyncApi document will remain empty.
29
+
30
+
The protocols with native support come along with a `@_ProtocolName_Binding` annotation to define protocol specific properties.
Copy file name to clipboardExpand all lines: docs/quickstart.md
+3-11Lines changed: 3 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ import CodeSpringwolfMaven from '!!raw-loader!./snippets/_springwolf_maven.xml';
9
9
10
10
# Quickstart
11
11
12
-
*The following instructions are for Kafka services - but AMQP services configuration is almost same. Check out the [example project for complete examples](https://github.com/timonback/springwolf-core/tree/master/springwolf-examples).*
12
+
*The following instructions are for Kafka services - but AMQP services configuration is almost same. Check out the [example project for complete examples](https://github.com/springwolf/springwolf-core/tree/master/springwolf-examples).*
13
13
14
14
## 1. Add dependencies
15
15
@@ -24,12 +24,7 @@ Add the following dependencies:
0 commit comments