OpenAPI: select API definition
Currently, GG-CE has several API definitions that have defined in OpenAPIConfig
:
@Bean
public GroupedOpenApi apiV1() {
String[] paths = { "/api/v1/**" };
return GroupedOpenApi.builder().setGroup("V1").pathsToMatch(paths).build();
}
@Bean
public GroupedOpenApi brapiV1() {
String[] paths = { "/brapi/v1/**" };
return GroupedOpenApi.builder().setGroup("BrAPI").pathsToMatch(paths).build();
}
But it's unable to select a definition using a UI:
The same issue in Genesys was mentioned in https://gitlab.croptrust.org/genesys-pgr/genesys-server/-/merge_requests/531?commit_id=984ba167797b376235bcefbc8d6092b9bb786a49#note_50483
UI must allow selecting of API definition: