Skip to main content

Quickstart

In just 3 steps:

  1. Add dependency
  2. Configure properties (optional)
  3. Start application & View the docs

Let's get started!

The following instructions are for Kafka services - other protocols are almost the same.

1. Add dependency

Add the following dependencies:

dependencies {
// Provides the documentation API
implementation 'io.github.springwolf:springwolf-kafka:2.0.0'

// Provides the UI - optional (recommended)
runtimeOnly 'io.github.springwolf:springwolf-ui:2.0.0'
}

Latest version is Maven Central

2. Configure properties (optional)

To customize, add the following to your application.properties:

springwolf.docket.info.title=${spring.application.name}

springwolf.docket.servers.kafka-server.protocol=kafka
springwolf.docket.servers.kafka-server.host=${spring.kafka.bootstrap-servers:localhost:29092}

3. Start application & View the docs

Start the application and open the URLs in your browser:

If you configured a different context path in your application, make sure to prepend it to Springwolf URLs: <host>:<port>/<context-path>/springwolf/asyncapi-ui.html

4. Next steps