cancel
Showing results for 
Search instead for 
Did you mean: 

APS 2.X - Adding Custom Endpoints to Swagger API

egilsoncabral
Champ in-the-making
Champ in-the-making

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?

1 REPLY 1

nicolasraynaud
Champ in-the-making
Champ in-the-making

Have you find solution ?
I tried also to generate other swagger-ui page (with springfox, then with springdoc), but without success for instance. (dependencies compatibility problems)