01-13-2023 06:12 AM
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?
02-12-2023 12:56 PM
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)
Explore our Alfresco products with the links below. Use labels to filter content by product module.