Delete method

This commit is contained in:
Fabio Sinibaldi 2020-12-10 12:02:24 +01:00
parent 0061188d52
commit a9a449c2fa
2 changed files with 21 additions and 0 deletions

View File

@ -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-SNAPSHOT] 2020-11-11
Delete method
Excluded upper bound release gCube 5
## [v1.0.1] 2020-11-11
Project interface

View File

@ -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<Project>() {
@Override
protected Project run() throws Exception ,WebApplicationException{
// TODO DELETE
return null;
}
}.execute().getResult();
}
@PUT
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)