You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to expose multiple APIs through one endpoint.
Examples using GroupedOpenApi works only if everything is packed into single application, and just join documentation from different jars.
I want to achieve something similar to http://springfox.github.io/springfox/docs/current/#aggregating-multiple-swagger-specifications-in-the-same-swagger-ui (location can be full URL)
I was trying to use OpenApiCustomiser but it force me to set paths or group Packages to scan or paths to filter can not be both null for the group:ftp
while I have only external url:
@Bean
public GroupedOpenApi ftpOpenApi()
{
final OpenApiCustomiser customizer = openApi -> {
final ExternalDocumentation ext = new ExternalDocumentation();
ext.setUrl("http://localhost:8220/v3/api-docs/");
openApi.setExternalDocs(ext);
};
return GroupedOpenApi.builder().setGroup("ftp").addOpenApiCustomiser(customizer).build();
}
The text was updated successfully, but these errors were encountered:
GroupedOpenApi usage, is only for multiple OpenAPI definitions in a single Spring Boot project.
If your purpose is to expose extrernal OpenAPI description only, you can add swagger-config.json (sample attached - containing the urls and group names) to your static ressouces and define the following property: swagger-config.txt
If you want to combine in the same swagger-ui both, REST APIs that are deployed within the same application as the swagger-ui and external REST APIs: This is an enhancement and will be available with the next release: v1.2.22.
To achieve that, you declare your REST APIs that are deployed within the same application as the swagger-ui using GroupedOpenApi.
And you external REST APIs with the following syntax:
Note that for serving external urls from the same swagger-ui, you need to have CORS enabled.
I want to expose multiple APIs through one endpoint.
Examples using GroupedOpenApi works only if everything is packed into single application, and just join documentation from different jars.
I want to achieve something similar to http://springfox.github.io/springfox/docs/current/#aggregating-multiple-swagger-specifications-in-the-same-swagger-ui (location can be full URL)
I was trying to use OpenApiCustomiser but it force me to set paths or group
Packages to scan or paths to filter can not be both null for the group:ftp
while I have only external url:
The text was updated successfully, but these errors were encountered: