diff --git a/CHANGELOG.md b/CHANGELOG.md index 69a43ad..20462b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm # Changelog for org.gcube.application.geoportal-service +## [v1.0.2] 2020-11-11 +Delete method +Excluded upper bound release gCube 5 + + ## [v1.0.1] 2020-11-11 Project interface diff --git a/pom.xml b/pom.xml index c5dee77..0ad09df 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.gcube.application geoportal-service - 1.0.1 + 1.0.2 Geoportal Service war @@ -47,22 +47,30 @@ - - - - - - - - - - + + + + + + + + + + org.gcube.core common-smartgears + + + org.gcube.core + common-gcube-calls + [1.0.0,1.2.0) + + + @@ -97,7 +105,7 @@ org.gcube.application geoportal-logic [1.0.4-SNAPSHOT,2.0.0) - + @@ -112,30 +120,21 @@ - + - + - + @@ -143,53 +142,26 @@ - + - + - + @@ -204,20 +176,16 @@ - + org.glassfish.jersey.test-framework.providers jersey-test-framework-provider-simple test - - - + + + junit junit @@ -238,12 +206,8 @@ test - + diff --git a/src/main/java/org/gcube/application/geoportal/service/rest/Projects.java b/src/main/java/org/gcube/application/geoportal/service/rest/Projects.java index b4c481e..668c52a 100644 --- a/src/main/java/org/gcube/application/geoportal/service/rest/Projects.java +++ b/src/main/java/org/gcube/application/geoportal/service/rest/Projects.java @@ -110,6 +110,22 @@ public class Projects { return toReturn; } + + // DELETE BY ID + @GET + @Produces(MediaType.APPLICATION_JSON) + @Path("{"+InterfaceConstants.Parameters.PROFILE_ID+"}/{"+InterfaceConstants.Parameters.PROJECT_ID+"}") + public void delete(@PathParam(InterfaceConstants.Parameters.PROFILE_ID) String profile, + @PathParam(InterfaceConstants.Parameters.PROJECT_ID) String id) { + new GuardedMethod() { + @Override + protected Project run() throws Exception ,WebApplicationException{ + // TODO DELETE + return null; + } + }.execute().getResult(); + } + @PUT @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)