Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger ui is not available for api-gateway #54

Open
dartartem opened this issue May 13, 2021 · 0 comments
Open

swagger ui is not available for api-gateway #54

dartartem opened this issue May 13, 2021 · 0 comments

Comments

@dartartem
Copy link
Contributor

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'
}
@dartartem dartartem changed the title swagger ui is not available for apt-gateway swagger ui is not available for api-gateway May 14, 2021
dartartem added a commit to dartartem/eventuate-tram-sagas-examples-customers-and-orders that referenced this issue May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant