diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/rest/ContextManager.java b/src/main/java/org/gcube/informationsystem/resourceregistry/rest/ContextManager.java index e898aa0..9c9535f 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/rest/ContextManager.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/rest/ContextManager.java @@ -103,4 +103,12 @@ public class ContextManager { return contextManagement.delete(); } + @GET + @Path("{" + ContextPath.ALL_PATH_PART + "}") + @Produces(ResourceInitializer.APPLICATION_JSON_CHARSET_UTF_8) + public String all() throws ResourceRegistryException { + logger.info("Requested to get the list of all {}s", Context.NAME); + ContextManagement contextManagement = new ContextManagement(); + return contextManagement.all(false); + } }