eventuate-tram/eventuate-tram-sagas-examples-customers-and-orders

swagger ui is not available for api-gateway

dartartem opened this issue · 0 comments

api-gateway has controller that server index.html of swagger-ui:

@RestController
public class SwaggerController {
@GetMapping("/swagger-ui.html")
public Resource getFile() {
return new ClassPathResource("META-INF/swagger-ui/index.html");
}
}

But there is no such file "META-INF/swagger-ui/index.html"

Problem is that META-INF of eventuate-util-swagger-ui is not unpacked in api-gateway jar

Solution is define task to unpack:

bootJar {
    requiresUnpack '**/eventuate-util-swagger-ui-*.jar'
}