API Discovery 1.0
在 Liberty 中启用 REST API 的发现和显示。
启用此功能部件
要启用 API 发现 1.0 功能部件,请在 server.xml 文件的 featureManager 元素内添加以下元素声明:
<feature>apiDiscovery-1.0</feature>
开发依赖于此功能部件的功能部件
如果您要开发依赖于 API 发现 1.0 功能部件的功能部件,请在新功能部件的功能部件清单文件的 Subsystem-Content 头中添加以下项:
com.ibm.websphere.appserver.apiDiscovery-1.0; type="osgi.subsystem.feature"
此功能部件启用的功能部件
此功能部件提供的第三方 API 包
- io.swagger.annotations
功能部件配置元素
可在 server.xml 文件中使用以下元素以配置 API 发现 1.0 功能部件:
- administrator-role
- apiDiscovery
- authCache
- authentication
- authorization-roles
- basicRegistry
- channelfw
- classloading
- httpAccessLogging
- httpDispatcher
- httpEncoding
- httpEndpoint
- httpOptions
- httpProxyRedirect
- jaasLoginContextEntry
- jaasLoginModule
- library
- ltpa
- mimeTypes
- quickStartSecurity
- tcpOptions
- trustAssociation
- virtualHost