diff --git a/documentation/TODO.md b/documentation/TODO.md new file mode 100644 index 0000000..a15d61f --- /dev/null +++ b/documentation/TODO.md @@ -0,0 +1,13 @@ +- Fix gCore IS publisher +- Fix Facet IS publisher +- How to interact with Facet IS publisher +- How to publish on Facet Is at startup +- How to Accounts requests +- How to get Context Examples +- How to get Secret Examples +- How to add Sphinx Doc +- How to debug in Eclipse +- How to document methods for Swagger + +- How to deploy to Portainer ??? +- How to enable debug and Live Reloading on Java docker Containers e.g. https://www.youtube.com/watch?v=Qn5G6YcmOFw \ No newline at end of file diff --git a/gcube/extra-resources/WEB-INF/application.yaml b/gcube/extra-resources/WEB-INF/application.yaml index 7aae5d0..ddf6166 100644 --- a/gcube/extra-resources/WEB-INF/application.yaml +++ b/gcube/extra-resources/WEB-INF/application.yaml @@ -5,4 +5,5 @@ description: ${project.description} excludes: - path: /excluded - path: /guest + - path: /guest/* - path: /api-docs/* diff --git a/src/main/java/org/gcube/service/helloworld/rest/ExcludeAuthorizationService.java b/src/main/java/org/gcube/service/helloworld/rest/ExcludeAuthorizationService.java index cb71ba7..7873d7e 100644 --- a/src/main/java/org/gcube/service/helloworld/rest/ExcludeAuthorizationService.java +++ b/src/main/java/org/gcube/service/helloworld/rest/ExcludeAuthorizationService.java @@ -1,5 +1,6 @@ package org.gcube.service.helloworld.rest; +import jakarta.ws.rs.BadRequestException; import jakarta.ws.rs.GET; import jakarta.ws.rs.NotFoundException; import jakarta.ws.rs.Path; @@ -34,6 +35,6 @@ public class ExcludeAuthorizationService { @GET @Path("exception") public String exc() throws WebApplicationException { - throw new NotFoundException(); + throw new BadRequestException(); } }