-
-
Notifications
You must be signed in to change notification settings - Fork 562
Description
Hey there,
i am using kind of default configuration as I saw that in demos project.
My only dependecy is
<dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-ui</artifactId> <version>1.5.2</version> </dependency>
Configurations
@Bean
public GroupedOpenApi vehicle() {
String paths[] = { "/**/vehicle/**" };
return GroupedOpenApi.builder().setGroup("codetable").pathsToMatch(paths)
.build();
}
@Bean
public GroupedOpenApi codetable() {
String paths[] = { "/**/codetable/**" };
return GroupedOpenApi.builder().setGroup("codetable").pathsToMatch(paths)
.build();
}
applicaiton.properties
springdoc.api-docs.groups.enabled=true
And that's it. I have couple scenarions which works.
http://localhost:10015/restapi-vehicle/services/rest/v3/api-docs - works, returns all paths and other info
http://localhost:10015/restapi-vehicle/services/rest/v3/api-docs/swagger-config - works, returning urls for my GroupedOpenApi beans
But the groupName EPs returns 404
http://localhost:10015/restapi-vehicle/services/rest/v3/api-docs/vehicle
http://localhost:10015/restapi-vehicle/services/rest/v3/api-docs/codetable
Is the 1.5.2 release has a bug for groupName configs or am I missing something in the configurations?
Thank for your time
