APS 2.X - Adding Custom Endpoints to Swagger API

cancel
Showing results for 
Search instead for 
Did you mean: 
egilsoncabral
Member II

APS 2.X - Adding Custom Endpoints to Swagger API

Hi,

We are trying to make Alfresco's swagger-ui (api-explore.html) also able to scan our custom-created API. We could enable for example OpenApi to scan our APIs importing the springdoc-openapi-ui dependency and creating new definitions with GroupedOpenApi configuration like this:

@Bean
    public GroupedOpenApi customOpenApi() {
        String packagesToscan[] = {"com.activiti.extension.api.runtime"};
        return GroupedOpenApi.builder().group("custom").packagesToScan(packagesToscan)
                .build();
    }

But the native APS swagger page (api-explorer) stops working, is there any way for them to coexist? That is, is it possible to define that via api-explorer, it can display the documentation of the new APIs created?