delete and purge methods marged with annotation @DELETE
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/catalogue-ws@148328 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
421f8adf5e
commit
64b2c80116
|
@ -3,6 +3,7 @@ package org.gcube.datacatalogue.catalogue.ws;
|
|||
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.Path;
|
||||
|
@ -99,7 +100,7 @@ public class Item {
|
|||
|
||||
}
|
||||
|
||||
@POST
|
||||
@DELETE
|
||||
@Path(Constants.DELETE_METHOD)
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
|
@ -112,7 +113,7 @@ public class Item {
|
|||
|
||||
}
|
||||
|
||||
@POST
|
||||
@DELETE
|
||||
@Path(Constants.PURGE_METHOD)
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package org.gcube.datacatalogue.catalogue.ws;
|
||||
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.DELETE;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
|
@ -60,7 +61,7 @@ public class Organization {
|
|||
|
||||
}
|
||||
|
||||
@POST
|
||||
@DELETE
|
||||
@Path(Constants.DELETE_METHOD)
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
|
@ -73,7 +74,7 @@ public class Organization {
|
|||
|
||||
}
|
||||
|
||||
@POST
|
||||
@DELETE
|
||||
@Path(Constants.PURGE_METHOD)
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
|
|
Reference in New Issue