英文:
Is it possible to disable the OpenApi UI in OpenLiberty in a production environment?
问题
我在想是否有可能在生产环境中禁用OpenLiberty中的OpenApi UI?出于测试目的,这个OpenApi UI非常好,但我不想在生产环境中暴露API。到目前为止,我还没有找到任何解决方案,比如配置属性或其他东西。
英文:
I'm wondering whether it's possible to disable the OpenApi UI in OpenLiberty in a production environment? For testing purposes this OpenApi UI is great, but I don't want to expose the API in my production enviroment. So far I haven't found any solutions like a configuration property or something else.
答案1
得分: 1
没有在OpenAPI功能中禁用UI的选项。
您可以从server.xml中完全删除OpenAPI功能。这将同时禁用UI和提供原始OpenAPI文档。
如果您只需要禁用UI的选项,您应该提交一个功能请求。
英文:
There's no option in the OpenAPI features to disable the UI.
You could remove the OpenAPI feature from your server.xml altogether. That would disable both the UI and the serving of the raw OpenAPI document.
If you need an option just to disable the UI, you should open a feature request.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论