Hi,
The usecase is very common, we have to enable Swagger UI in dev && QA environments and disable it in production. In SpringFox, they have a boolean value to do it.
.enable(this.appProperties.getSwagger());
It could be a great feature to add this to SpringDocs.
Thanks
Hi,
This feature will be added on v1.2.12, of springdoc-openapi.
This property helps you disable only the ui.
springdoc.swagger-ui.enabled=false
The following property, will help you disable the api-docs Rest endpoints as well:
springdoc.api-docs.enabled=false
Great 👍, thank you so much.
On Tue, Nov 26, 2019, 21:43 springdoc notifications@github.com wrote:
Hi,
This feature will be added on v1.2.12, of springdoc-openapi.
This property helps you disable only the ui.springdoc.swagger-ui.enabled=false
The following property, will help you disable the api-docs Rest endpoints
as well:springdoc.api-docs.enabled=false
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/springdoc/springdoc-openapi/issues/191?email_source=notifications&email_token=AFJ7ZUXA25EGYVPG6O3EXFDQVWC75A5CNFSM4JR2HO2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFHMBFA#issuecomment-558809236,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFJ7ZUXDKY2SRNB5FTCFB6DQVWC75ANCNFSM4JR2HO2A
.
Most helpful comment
Hi,
This feature will be added on v1.2.12, of springdoc-openapi.
This property helps you disable only the ui.
The following property, will help you disable the api-docs Rest endpoints as well: