You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Nino Martinez (JIRA)" <ji...@apache.org> on 2018/09/28 09:19:00 UTC

[jira] [Commented] (CXF-7694) spring boot jax-rs sample creates incorrect urls in swagger

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

Nino Martinez commented on CXF-7694:
------------------------------------

I cannot get this to work on 3.2.6 unless I do so:
{code:java}
@Configuration
public class FeaturesConfig {
    @Bean("openApiFeature")
    public Feature swagger2Feature() {
        OpenApiFeature result = new OpenApiFeature();
        result.setTitle("Spring Boot + CXF + Swagger + Docker Example");
        result.setDescription("Spring Boot + CXF + Swagger + Docker Example description");
        OpenApiCustomizer openApiCustomizer = new OpenApiCustomizer();
        openApiCustomizer.setDynamicBasePath(true);
        result.setCustomizer(openApiCustomizer);

        result.setPrettyPrint(true);
        return result;
    }
}
{code}
Also there is the issue claimed to be solved by -CXF-7634- 

Only way I get CXF to pickup my yaml are when its called : swagger.yaml

> spring boot jax-rs sample creates incorrect urls in swagger
> -----------------------------------------------------------
>
>                 Key: CXF-7694
>                 URL: https://issues.apache.org/jira/browse/CXF-7694
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.2.4
>            Reporter: pre sto
>            Assignee: Dennis Kieselhorst
>            Priority: Minor
>             Fix For: 3.2.5
>
>
> The sample code in
> [https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/spring_boot]
> creates in swagger ui urls like
> [http://localhost:8080/sayHello/q]
> which do not work, instead of
> [http://localhost:8080/services/helloservice/sayHello/q|http://localhost:8080/services/helloservice/sayHello/]
> The problem started w. the commit of  "[[CXF-7634] changed Spring Boot sample to use OpenApiFeature|https://github.com/apache/cxf/commit/5b7308408d8b0127a5ee4deea7bd66b44217dd58]"
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)