Class DocumentationManager
java.lang.Object
one.microstream.storage.restservice.sparkjava.RouteManager
one.microstream.storage.restservice.sparkjava.DocumentationManager
public class DocumentationManager extends RouteManager
- 
Constructor SummaryConstructors Constructor Description DocumentationManager(spark.Service sparkService)
- 
Method SummaryModifier and Type Method Description ObjectgetAllRoutes(String host)get a Json Array containing all registered roots and there httpMethodsObjectgetDocumentation(String uri)Get the documentation snippet of all http methods for a registered uriObjectgetDocumentation(String uri, String httpMethod)Get the documentation snippet for a http method for a registered urivoidregisterRoute(spark.route.HttpMethod httpMethod, String uri, RouteBase<?> route)Register a route / httpMethod and automatically create and register an options route to get help on this routeMethods inherited from class one.microstream.storage.restservice.sparkjava.RouteManagergetRegisteredRoutes
- 
Constructor Details- 
DocumentationManagerpublic DocumentationManager(spark.Service sparkService)
 
- 
- 
Method Details- 
registerRouteRegister a route / httpMethod and automatically create and register an options route to get help on this route- Overrides:
- registerRoutein class- RouteManager
 
- 
getAllRoutesget a Json Array containing all registered roots and there httpMethods- Parameters:
- host- : the host url and context path
- Returns:
- JsonArray
 
- 
getDocumentationGet the documentation snippet for a http method for a registered uri- Parameters:
- uri-
- httpMethod-
- Returns:
- JsonObject
 
- 
getDocumentationGet the documentation snippet of all http methods for a registered uri- Parameters:
- uri-
- httpMethod-
- Returns:
- JsonObject
 
 
-