You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2017/12/14 05:20:02 UTC
[karaf-cave] branch master updated: Use DELETE verb in Cave
Deployer REST
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf-cave.git
The following commit(s) were added to refs/heads/master by this push:
new 3ec3e16 Use DELETE verb in Cave Deployer REST
3ec3e16 is described below
commit 3ec3e163f01e747094d2dc7e1b4c6b792ad2d1aa
Author: Jean-Baptiste Onofré <jb...@apache.org>
AuthorDate: Thu Dec 14 06:19:47 2017 +0100
Use DELETE verb in Cave Deployer REST
---
.../karaf/cave/deployer/rest/DeployerRest.java | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/deployer/rest/src/main/java/org/apache/karaf/cave/deployer/rest/DeployerRest.java b/deployer/rest/src/main/java/org/apache/karaf/cave/deployer/rest/DeployerRest.java
index 715ea02..d5cde05 100644
--- a/deployer/rest/src/main/java/org/apache/karaf/cave/deployer/rest/DeployerRest.java
+++ b/deployer/rest/src/main/java/org/apache/karaf/cave/deployer/rest/DeployerRest.java
@@ -109,7 +109,7 @@ public class DeployerRest {
@Path("/bundles")
@Consumes("application/json")
@Produces("application/json")
- @POST
+ @GET
public List<Bundle> listBundles(BasicRequest request) throws Exception {
return deployer.listBundles(request.getJmxUrl(),
request.getKarafName(),
@@ -165,7 +165,7 @@ public class DeployerRest {
request.getConfigs());
}
- @Path("/feature/repository/add")
+ @Path("/feature/repository")
@Consumes("application/json")
@POST
public void addFeaturesRepository(DeployRequest request) throws Exception {
@@ -176,9 +176,9 @@ public class DeployerRest {
request.getPassword());
}
- @Path("/feature/repository/remove")
+ @Path("/feature/repository")
@Consumes("application/json")
- @POST
+ @DELETE
public void removeFeaturesRepository(DeployRequest request) throws Exception {
deployer.removeFeaturesRepository(request.getArtifactUrl(),
request.getJmxUrl(),
@@ -242,9 +242,9 @@ public class DeployerRest {
request.getPassword());
}
- @Path("/config/delete")
+ @Path("/config")
@Consumes("application/json")
- @POST
+ @DELETE
public void deleteConfig(ConfigRequest request) throws Exception {
deployer.deleteConfig(request.getPid(),
request.getJmxUrl(),
@@ -301,9 +301,9 @@ public class DeployerRest {
request.getPassword());
}
- @Path("/config/property/delete")
+ @Path("/config/property")
@Consumes("application/json")
- @POST
+ @DELETE
public void deleteConfigProperty(ConfigPropertyKeyRequest request) throws Exception {
deployer.deleteConfigProperty(request.getPid(),
request.getKey(),
@@ -325,7 +325,7 @@ public class DeployerRest {
request.getUser(),
request.getPassword());
}
- @Path("/cluster/feature/repository/add")
+ @Path("/cluster/feature/repository")
@Consumes("application/json")
@POST
public void clusterAddFeaturesRepository(ClusterDeployRequest request) throws Exception {
@@ -337,9 +337,9 @@ public class DeployerRest {
request.getPassword());
}
- @Path("/cluster/feature/repository/remove")
+ @Path("/cluster/feature/repository")
@Consumes("application/json")
- @POST
+ @DELETE
public void clusterRemoveFeaturesRepository(ClusterDeployRequest request) throws Exception {
deployer.clusterRemoveFeaturesRepository(request.getArtifactUrl(),
request.getClusterGroup(),
--
To stop receiving notification emails like this one, please contact
['"commits@karaf.apache.org" <co...@karaf.apache.org>'].