Skip to content

Multiple OpenAPI definitions in spring webflux #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cmario opened this issue Jan 7, 2020 · 2 comments
Closed

Multiple OpenAPI definitions in spring webflux #329

cmario opened this issue Jan 7, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@cmario
Copy link

cmario commented Jan 7, 2020

Hi,

according to #213 this feature is available from version v1.2.19. I am just wondering if the same is supported for webflux or only for mvc as I cannot make it work following the example https://github.com/springdoc/springdoc-openapi/tree/master/springdoc-openapi-webmvc-core/src/test/java/test/org/springdoc/api/app68.

My configuration is the one below:

springdoc:
  swagger-ui:
    enabled: false
  api-docs:
    enabled: true
    groups:
      enabled: true

@Bean
public GroupedOpenApi userOpenApi() {
        return GroupedOpenApi.builder()
                .setGroup("users")
                .pathsToMatch("/api/v1/**")
                .build();
}

The expected result is to have the OpenAPI description under /v3/api-docs/users but I get a 404. I am using version 1.2.24.

Thank you
Regards
Mario

@bnasslahsen
Copy link
Collaborator

Hi @cmario,

This feature is not available yet for webflux.
Will be available for the next release. v1.2.25;

@cmario
Copy link
Author

cmario commented Jan 8, 2020

Thanks a lot @bnasslahsen. That was quick :-)

@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants