ATLAS-1867 ATLASClientV2 correct delete typedefs expected http code Signed-off-by: David Radley <david_rad...@uk.ibm.com> (cherry picked from commit 376298540ceca9315d3726c9dbaab619d33ea4f7)
Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/374cc342 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/374cc342 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/374cc342 Branch: refs/heads/0.8-incubating Commit: 374cc342daf1982145b3c36788fb972682bc6d35 Parents: bd5f74b Author: Richard Ding <rd...@yahoo-inc.com> Authored: Wed Aug 16 10:36:00 2017 +0100 Committer: Madhan Neethiraj <mad...@apache.org> Committed: Wed Aug 16 11:15:59 2017 -0700 ---------------------------------------------------------------------- client/src/main/java/org/apache/atlas/AtlasClientV2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/374cc342/client/src/main/java/org/apache/atlas/AtlasClientV2.java ---------------------------------------------------------------------- diff --git a/client/src/main/java/org/apache/atlas/AtlasClientV2.java b/client/src/main/java/org/apache/atlas/AtlasClientV2.java index 1353357..2cb9e84 100644 --- a/client/src/main/java/org/apache/atlas/AtlasClientV2.java +++ b/client/src/main/java/org/apache/atlas/AtlasClientV2.java @@ -67,7 +67,7 @@ public class AtlasClientV2 extends AtlasBaseClient { private static final APIInfo GET_ALL_TYPE_DEFS = new APIInfo(TYPEDEFS_API, HttpMethod.GET, Response.Status.OK); private static final APIInfo CREATE_ALL_TYPE_DEFS = new APIInfo(TYPEDEFS_API, HttpMethod.POST, Response.Status.OK); private static final APIInfo UPDATE_ALL_TYPE_DEFS = new APIInfo(TYPEDEFS_API, HttpMethod.PUT, Response.Status.OK); - private static final APIInfo DELETE_ALL_TYPE_DEFS = new APIInfo(TYPEDEFS_API, HttpMethod.DELETE, Response.Status.OK); + private static final APIInfo DELETE_ALL_TYPE_DEFS = new APIInfo(TYPEDEFS_API, HttpMethod.DELETE, Response.Status.NO_CONTENT); // Entity APIs public static final String ENTITY_API = BASE_URI + "v2/entity/"; @@ -278,7 +278,7 @@ public class AtlasClientV2 extends AtlasBaseClient { * @param typesDef A composite object that captures all types to be deleted */ public void deleteAtlasTypeDefs(final AtlasTypesDef typesDef) throws AtlasServiceException { - callAPI(DELETE_ALL_TYPE_DEFS, AtlasTypesDef.class, AtlasType.toJson(typesDef)); + callAPI(DELETE_ALL_TYPE_DEFS, (Class<?>)null, AtlasType.toJson(typesDef)); } /* Lineage Calls */