Is there a way to group all ungrouped controller api's to a single default group instead of specifically defining a GroupedOpenApi bean with exclusion?
For eg, if I have a controller
@RestController
public class TestController {
@GetMapping(value="/user")
public String test() {
return "user";
}
@GetMapping(value="/pet")
public String test1() {
return "pet";
}
}
and a GroupedOpenApi bean for /user
@Bean
public GroupedOpenApi userGroup() {
return GroupedOpenApi.builder().group("user").pathsToMatch("/user").build();
}
This one generates openapi json for the url /v3/api-docs/user properly. Now I want the other /pet api to be available in a default group without adding another GroupedOpenApi bean specifically for /pet. So is there a way to generate a default group out of the box which will have all the ungrouped apis which are not filtered with any GroupedOpenApi bean? Or adding another GroupedOpenApi bean with exclude patterns is only solution?