Package org.onosproject.rest
Interface ApiDocService
-
@Beta public interface ApiDocServiceService for registering REST API documentation resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApiDocProvidergetDocProvider(java.lang.String key)Returns the specified REST API documentation provider with the specified key.java.util.Set<ApiDocProvider>getDocProviders()Returns the set of all registered REST API documentation providers.voidregister(ApiDocProvider provider)Registers the specified REST API documentation provider.voidunregister(ApiDocProvider provider)Unregisters the specified REST API documentation provider.
-
-
-
Method Detail
-
register
void register(ApiDocProvider provider)
Registers the specified REST API documentation provider.- Parameters:
provider- REST API documentation provider
-
unregister
void unregister(ApiDocProvider provider)
Unregisters the specified REST API documentation provider.- Parameters:
provider- REST API documentation provider
-
getDocProviders
java.util.Set<ApiDocProvider> getDocProviders()
Returns the set of all registered REST API documentation providers.- Returns:
- set of registered documentation providers
-
getDocProvider
ApiDocProvider getDocProvider(java.lang.String key)
Returns the specified REST API documentation provider with the specified key.- Parameters:
key- REST API key- Returns:
- documentation provider
-
-