Skip to content
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

Not able to exclude the path from custom api.yaml file for a given group name #2569

Open
eddy8700 opened this issue Apr 11, 2024 · 2 comments

Comments

@eddy8700
Copy link

I have a use case where i don't have the controller defined in my spring boot application , i have the open api definition file in yaml format that has say 3 endpoints /portfolio /transactions and /history now for group1 say i want to just display the /portfolio and /transactions endpoint and not the /history endpoint.

I am using the spring boot version 3.2.4
springdoc-openapi-starter-webmvc-ui 2.3.0

my application.properties file
spring.application.name=swagger-demo
springdoc.api-docs.enabled=false
springdoc.swagger-ui.urls[0].url=/user1api.yaml
springdoc.swagger-ui.urls[0].name=group1
springdoc.group-configs[0].group=group1
springdoc.group-configs[0].paths-to-exclude=/history

however on the swagger UI page under the group1 i can see all the 3 endpoints

@eddy8700
Copy link
Author

@eddy8700
Copy link
Author

@jryan128 really appreciate any help on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant