Http method

This commit is contained in:
Fabio Sinibaldi 2020-12-10 15:33:06 +01:00
parent a971a04677
commit 2b4fa5f6fa
3 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
# Changelog for org.gcube.application.geoportal-service
## [v1.0.3-SNAPSHOT] 2020-11-11
Fixed HTTP method
## [v1.0.2] 2020-11-11
Delete method
Excluded upper bound release gCube 5

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.application</groupId>
<artifactId>geoportal-service</artifactId>
<version>1.0.2</version>
<version>1.0.3-SNAPSHOT</version>
<name>Geoportal Service</name>
<packaging>war</packaging>

View File

@ -4,6 +4,7 @@ import java.util.Collections;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
@ -112,7 +113,7 @@ public class Projects {
// DELETE BY ID
@GET
@DELETE
@Produces(MediaType.APPLICATION_JSON)
@Path("{"+InterfaceConstants.Parameters.PROFILE_ID+"}/{"+InterfaceConstants.Parameters.PROJECT_ID+"}")
public void delete(@PathParam(InterfaceConstants.Parameters.PROFILE_ID) String profile,