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
* docs: add unit test
* docs: linting
* docs: update to springwolf version 1.7.0
* docs: improve faq for using springwolf-ui only
* docs: re-order homepage feature
Copy file name to clipboardExpand all lines: docs/faq.md
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,45 @@ You can use `springwolf-ui` without any other Springwolf dependency.
16
16
`springwolf-ui` will fetch any documentation available at the `springwolf/docs` path.
17
17
It must be in `json` format (`yaml` isn't supported).
18
18
19
-
Either create a custom spring controller to serve the file or [serve static resources with spring](https://spring.io/guides/gs/serving-web-content/) and place your AsyncAPI document into `resources/springwolf/docs` (without file extension).
19
+
Either create a custom spring controller to serve the file or [serve static resources with spring](https://spring.io/guides/gs/serving-web-content/) and place AsyncAPI document file called `docs` (without file extension) into the folder `resources/springwolf`.
20
20
21
21
Note: `springwolf-ui` doesn't support the full AsyncAPI spec.
22
22
23
+
### Unit test verification
24
+
25
+
With the AsyncAPI artifact checked into the repository at `src/test/resources/asyncapi.json`,
26
+
a unit test can verify that the current code still matches the expected AsyncAPI specification.
27
+
Additionally, a diff reveals (un)expected changes.
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)
0 commit comments