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:3.0.0'

// Provides the AsyncAPI document endpoint - optional (recommended)
implementation 'io.github.springwolf:springwolf-web:3.0.0'

// Provides the UI - optional (recommended), requires springwolf-web
runtimeOnly 'io.github.springwolf:springwolf-ui:3.0.0'
}

Latest version is Maven Central

springwolf-web serves the AsyncAPI document over HTTP and is required for springwolf-ui. Without it, Springwolf still generates the document, for example for static generation.

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​