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