Here is what I did to get the swagger ui working:
package io.avalia.experiments.flowable.simpleapp.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.flowable.rest.service.api.RestResponseFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration
@EnableSwagger2
@ComponentScan(basePackages = "org.flowable.rest.service.api")
public class SwaggerDocumentationConfig {
@Autowired
protected ObjectMapper objectMapper;
@Bean()
public RestResponseFactory restResponseFactory() {
RestResponseFactory restResponseFactory = new RestResponseFactory(objectMapper);
return restResponseFactory;
}
ApiInfo apiInfo() {
return new ApiInfoBuilder()
.title("Flowable APIs")
.build();
}
}