[ 
https://issues.apache.org/jira/browse/CXF-8685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17520371#comment-17520371
 ] 

Thang Le commented on CXF-8685:
-------------------------------

Hi [~reta] 

Thanks for information. I set on XML context file.
{code:java}
<bean id="openApiFeature"
      class="org.apache.cxf.jaxrs.openapi.OpenApiFeature">
    <property name="title" value="iAttendance REST APIs"/>
    <property name="useContextBasedConfig" value="true"/>
    <property name="scan" value="false"/>
    <property name="scannerClass" 
value="io.swagger.v3.jaxrs2.integration.JaxrsApplicationScanner"/>
    <property name="customizer">
        <bean class="org.apache.cxf.jaxrs.openapi.OpenApiCustomizer">
            <property name="dynamicBasePath" value="true"/>
        </bean>
    </property>
</bean> {code}
{code:java}
<jaxrs:server id="ApplicationServices" address="/App"> <jaxrs:serviceBeans> 
<ref bean="AssetManagementV1Impl"/> <ref bean="AttendanceManagementV1Impl"/> 
<ref bean="VisitorManagementV1Impl"/> <ref bean="EticketManagementV1Impl"/> 
<ref bean="UserManagementV1Impl"/> </jaxrs:serviceBeans> <jaxrs:providers> <ref 
bean="jsonProvider"/> <ref bean="multipartProvider"/> </jaxrs:providers> 
<jaxrs:features> <bean id="loggingFeature" 
class="org.apache.cxf.ext.logging.LoggingFeature"> <property 
name="prettyLogging" value="true"/> </bean> <ref bean="openApiFeature"/> 
</jaxrs:features> </jaxrs:server>
{code}
 

But it doesn't work

> cannot access https in swagger UI with OpenApiFeature
> -----------------------------------------------------
>
>                 Key: CXF-8685
>                 URL: https://issues.apache.org/jira/browse/CXF-8685
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, Services
>    Affects Versions: 3.3.13
>            Reporter: Thang Le
>            Priority: Critical
>              Labels: OpenApiFeature, openapi
>
> In CXF {*}OpenApiFeature 
> ({*}https://cxf.apache.org/docs/openapifeature.html). We need to allow to set 
> server to '/' to fix https cannot set in Swagger UI.
>  
> Reference issue:
> [https://github.com/springdoc/springdoc-openapi/issues/726]
> https://stackoverflow.com/questions/70843940/springdoc-openapi-ui-how-do-i-set-the-request-to-https
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to