Fixing docs

This commit is contained in:
Luca Frosini 2022-03-31 18:48:31 +02:00
parent 489cd05268
commit 8a3159ee4b
2 changed files with 3 additions and 10 deletions

View File

@ -3,14 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://enunciate.webcohesion.com/schemas/enunciate-2.14.0.xsd"> xsi:noNamespaceSchemaLocation="http://enunciate.webcohesion.com/schemas/enunciate-2.14.0.xsd">
<api-classes> <api-classes>
<!-- Use patterns to exclude classes... <exclude pattern="org.gcube.gcat.rest.Docs" />
e.g. for URI-Resolver
<exclude pattern="org.gcube.datatransfer.resolver.services.UriResolverDocs" />
<exclude pattern="org.gcube.datatransfer.resolver.services.UriResolverIndex" />
<exclude pattern="org.gcube.datatransfer.resolver.services.UriResolverInfo" />
<exclude pattern="org.gcube.datatransfer.resolver.services.tobackward.BackCatalogueResolver" />
<exclude pattern="org.gcube.datatransfer.resolver.services.tobackward.BackUriResolverCatalogueResolver" />
-->
</api-classes> </api-classes>
<modules> <modules>
<gwt-json-overlay disabled="true " /> <gwt-json-overlay disabled="true " />
@ -18,6 +11,6 @@
<ruby-json-client disabled="true" /> <ruby-json-client disabled="true" />
<java-json-client disabled="true" /> <java-json-client disabled="true" />
<javascript-client disabled="true" /> <javascript-client disabled="true" />
<docs docsDir="${project.build.directory}" docsSubdir="docs" /> <docs docsDir="${project.build.directory}/docs" />
</modules> </modules>
</enunciate> </enunciate>

View File

@ -24,7 +24,7 @@ public class Docs {
private static Logger logger = LoggerFactory.getLogger(Docs.class); private static Logger logger = LoggerFactory.getLogger(Docs.class);
@GET @GET
@Path("{any: .{0,}}") @Path("{any: .*}")
public InputStream toDoc(@Context HttpServletRequest req) throws WebApplicationException { public InputStream toDoc(@Context HttpServletRequest req) throws WebApplicationException {
String pathInfo = req.getPathInfo(); String pathInfo = req.getPathInfo();