This is an automated email from the ASF dual-hosted git repository.

sarath pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new eb5c21f  ATLAS-3747: Atlas Admin Purge API will take list of guids as 
query param instead of body
eb5c21f is described below

commit eb5c21fa2181ced8210310a2452f86619c011930
Author: sidmishra <[email protected]>
AuthorDate: Tue Apr 21 12:40:25 2020 -0700

    ATLAS-3747: Atlas Admin Purge API will take list of guids as query param 
instead of body
    
    Signed-off-by: Sarath Subramanian <[email protected]>
    (cherry picked from commit 5afa572376ec0204371903263ba43073ee12ea1b)
---
 client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java     | 2 +-
 webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java 
b/client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java
index 5a19a0b..7b6d1d0 100644
--- a/client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java
+++ b/client/client-v2/src/main/java/org/apache/atlas/AtlasClientV2.java
@@ -597,7 +597,7 @@ public class AtlasClientV2 extends AtlasBaseClient {
         public static final API_V2 CREATE_ENTITIES             = new 
API_V2(ENTITY_BULK_API, HttpMethod.POST, Response.Status.OK);
         public static final API_V2 UPDATE_ENTITIES             = new 
API_V2(ENTITY_BULK_API, HttpMethod.POST, Response.Status.OK);
         public static final API_V2 DELETE_ENTITIES_BY_GUIDS    = new 
API_V2(ENTITY_BULK_API, HttpMethod.DELETE, Response.Status.OK);
-        public static final API_V2 PURGE_ENTITIES_BY_GUIDS     = new 
API_V2(ENTITY_PURGE_API, HttpMethod.DELETE, Response.Status.OK);
+        public static final API_V2 PURGE_ENTITIES_BY_GUIDS     = new 
API_V2(ENTITY_PURGE_API, HttpMethod.PUT, Response.Status.OK);
         public static final API_V2 GET_CLASSIFICATIONS         = new 
API_V2(ENTITY_API + "guid/%s/classifications", HttpMethod.GET, 
Response.Status.OK);
         public static final API_V2 ADD_CLASSIFICATIONS         = new 
API_V2(ENTITY_API + "guid/%s/classifications", HttpMethod.POST, 
Response.Status.NO_CONTENT);
         public static final API_V2 UPDATE_CLASSIFICATIONS      = new 
API_V2(ENTITY_API + "guid/%s/classifications", HttpMethod.PUT, 
Response.Status.NO_CONTENT);
diff --git 
a/webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java 
b/webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java
index a7d554a..3a5ae5c 100755
--- a/webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java
+++ b/webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java
@@ -87,6 +87,7 @@ import javax.ws.rs.DELETE;
 import javax.ws.rs.DefaultValue;
 import javax.ws.rs.GET;
 import javax.ws.rs.POST;
+import javax.ws.rs.PUT;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
@@ -458,7 +459,7 @@ public class AdminResource {
         return result;
     }
 
-    @DELETE
+    @PUT
     @Path("/purge")
     @Consumes(Servlets.JSON_MEDIA_TYPE)
     @Produces(Servlets.JSON_MEDIA_TYPE)

Reply via email to