可以在生产环境中禁用OpenLiberty中的OpenApi UI吗?

huangapple go评论57阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年4月4日 17:20:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/75927636.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定