organize core endpoints

This commit is contained in:
Jonathan Shook 2020-08-12 00:00:06 -05:00
parent c3cdcd6479
commit 4c91fcbc89
3 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
package io.nosqlbench.docsys.api;
import io.nosqlbench.docsys.core.DocsysMarkdownEndpoint;
import io.nosqlbench.docsys.endpoints.DocsysMarkdownEndpoint;
/**
* At runtime, any instances of this service will be used to find

View File

@ -1,5 +1,6 @@
package io.nosqlbench.docsys.core;
package io.nosqlbench.docsys.endpoints;
import io.nosqlbench.docsys.core.NBWebServer;
import io.nosqlbench.nb.annotations.Service;
import io.nosqlbench.docsys.api.WebServiceObject;
import org.apache.logging.log4j.Logger;
@ -30,7 +31,7 @@ public class DocServerStatusEndpoint implements WebServiceObject {
@Path("status")
@Produces(MediaType.APPLICATION_JSON)
public String getStats() {
DocServer s = (DocServer) config.getProperty("server");
NBWebServer s = (NBWebServer) config.getProperty("server");
return s.toString();
}

View File

@ -1,5 +1,7 @@
package io.nosqlbench.docsys.core;
package io.nosqlbench.docsys.endpoints;
import io.nosqlbench.docsys.core.DocsysPathLoader;
import io.nosqlbench.docsys.core.PathWalker;
import io.nosqlbench.nb.annotations.Service;
import io.nosqlbench.docsys.api.DocsNameSpace;
import io.nosqlbench.docsys.api.Docs;