Class DocumentationManager
java.lang.Object
one.microstream.storage.restservice.sparkjava.RouteManager
one.microstream.storage.restservice.sparkjava.DocumentationManager
public class DocumentationManager extends RouteManager
-
Constructor Summary
Constructors Constructor Description DocumentationManager(spark.Service sparkService)
-
Method Summary
Modifier and Type Method Description Object
getAllRoutes(String host)
get a Json Array containing all registered roots and there httpMethodsObject
getDocumentation(String uri)
Get the documentation snippet of all http methods for a registered uriObject
getDocumentation(String uri, String httpMethod)
Get the documentation snippet for a http method for a registered urivoid
registerRoute(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.RouteManager
getRegisteredRoutes
-
Constructor Details
-
DocumentationManager
public DocumentationManager(spark.Service sparkService)
-
-
Method Details
-
registerRoute
Register a route / httpMethod and automatically create and register an options route to get help on this route- Overrides:
registerRoute
in classRouteManager
-
getAllRoutes
get a Json Array containing all registered roots and there httpMethods- Parameters:
host
- : the host url and context path- Returns:
- JsonArray
-
getDocumentation
Get the documentation snippet for a http method for a registered uri- Parameters:
uri
-httpMethod
-- Returns:
- JsonObject
-
getDocumentation
Get the documentation snippet of all http methods for a registered uri- Parameters:
uri
-- Returns:
- JsonObject
-