diff --git a/docs/index.rst b/docs/index.rst index 191a61b..6faa24f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -15,7 +15,7 @@ organizations and how they are mapped to D4Science concepts. The web services exposes a subset of such functionalities over **https in a standard, reliable and secure way**. -See the vailable REST-API at a glance on `D4Science Developers Website `_. +See the vailable REST-API at a glance on `its API docs <../api-docs/index.html>`_. @@ -24,7 +24,7 @@ See the vailable REST-API at a glance on `D4Science Developers Website `_ using a standard naming approach. Moreover, they accept (in case of http POST/PUT methods) JSON objects. .. IMPORTANT:: The result of all methods is always a JSON object as per below: diff --git a/enunciate.xml b/enunciate.xml index 47bb9b5..97526b3 100644 --- a/enunciate.xml +++ b/enunciate.xml @@ -26,7 +26,7 @@ - + target - ${project.build.directory}/${project.artifactId}-${project.version}/apidocs - ${project.build.directory}/apidocs + ${project.build.directory}/${project.artifactId}-${project.version}/api-docs + ${project.build.directory}/api-docs true diff --git a/src/main/java/org/gcube/portal/social/networking/ws/docs/DocsGenerator.java b/src/main/java/org/gcube/portal/social/networking/ws/docs/DocsGenerator.java index b255d4f..140094f 100644 --- a/src/main/java/org/gcube/portal/social/networking/ws/docs/DocsGenerator.java +++ b/src/main/java/org/gcube/portal/social/networking/ws/docs/DocsGenerator.java @@ -13,7 +13,7 @@ import javax.ws.rs.core.Context; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@Path("apidocs") +@Path("api-docs") public class DocsGenerator { private static Logger logger = LoggerFactory.getLogger(DocsGenerator.class); @@ -27,8 +27,8 @@ public class DocsGenerator { logger.debug("pathInfo {}", pathInfo); try { - if (pathInfo.endsWith("/apidocs/")) { - pathInfo += "index.html"; + if (pathInfo.endsWith("/api-docs")) { + pathInfo += "/index.html"; } logger.info("going to {}", pathInfo); diff --git a/src/main/webapp/WEB-INF/gcube-app.xml b/src/main/webapp/WEB-INF/gcube-app.xml index 4579edf..25977d6 100644 --- a/src/main/webapp/WEB-INF/gcube-app.xml +++ b/src/main/webapp/WEB-INF/gcube-app.xml @@ -4,5 +4,6 @@ 2.5.0-SNAPSHOT SocialNetworking Service + /api-docs/* /docs/* \ No newline at end of file diff --git a/src/main/webapp/apidocs/css/d4science_enunciate_custom.css b/src/main/webapp/api-docs/css/d4science_enunciate_custom.css similarity index 100% rename from src/main/webapp/apidocs/css/d4science_enunciate_custom.css rename to src/main/webapp/api-docs/css/d4science_enunciate_custom.css