eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject [08/50] incubator-eagle git commit: [EAGLE-601] Change updating policy status API as POST /metadata/policies/{policyId}/status/{status}
Date Wed, 19 Oct 2016 03:27:23 GMT
[EAGLE-601] Change updating policy status API as POST /metadata/policies/{policyId}/status/{status}


Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/757f510a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/757f510a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/757f510a

Branch: refs/heads/master
Commit: 757f510a14a2c79b4d20b4c156aaf079cc1683fe
Parents: 9205433
Author: Hao Chen <hao@apache.org>
Authored: Tue Oct 11 11:57:33 2016 +0800
Committer: Hao Chen <hao@apache.org>
Committed: Tue Oct 11 11:57:33 2016 +0800

----------------------------------------------------------------------
 .../apache/eagle/service/metadata/resource/MetadataResource.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/757f510a/eagle-core/eagle-alert-parent/eagle-alert/alert-metadata-parent/alert-metadata-service/src/main/java/org/apache/eagle/service/metadata/resource/MetadataResource.java
----------------------------------------------------------------------
diff --git a/eagle-core/eagle-alert-parent/eagle-alert/alert-metadata-parent/alert-metadata-service/src/main/java/org/apache/eagle/service/metadata/resource/MetadataResource.java
b/eagle-core/eagle-alert-parent/eagle-alert/alert-metadata-parent/alert-metadata-service/src/main/java/org/apache/eagle/service/metadata/resource/MetadataResource.java
index 0bf31df..d3d41ea 100644
--- a/eagle-core/eagle-alert-parent/eagle-alert/alert-metadata-parent/alert-metadata-service/src/main/java/org/apache/eagle/service/metadata/resource/MetadataResource.java
+++ b/eagle-core/eagle-alert-parent/eagle-alert/alert-metadata-parent/alert-metadata-service/src/main/java/org/apache/eagle/service/metadata/resource/MetadataResource.java
@@ -236,8 +236,8 @@ public class MetadataResource {
     }
 
     @Path("/policies/{policyId}/status/{status}")
-    @PUT
-    public OpResult updatePolicyStatusByID(@PathParam("policyId") String policyId, @PathParam("status")PolicyDefinition.PolicyStatus
status) {
+    @POST
+    public OpResult updatePolicyStatusByID(@PathParam("policyId") String policyId, @PathParam("status")
PolicyDefinition.PolicyStatus status) {
         OpResult result = new OpResult();
         try {
             PolicyDefinition policyDefinition = getPolicyByID(policyId);


Mime
View raw message