Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
37629854
Commit
37629854
authored
Aug 16, 2017
by
Richard Ding
Committed by
David Radley
Aug 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1867 ATLASClientV2 correct delete typedefs expected http code
Signed-off-by:
David Radley
<
david_radley@uk.ibm.com
>
parent
856a0c61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
AtlasClientV2.java
client/src/main/java/org/apache/atlas/AtlasClientV2.java
+2
-2
No files found.
client/src/main/java/org/apache/atlas/AtlasClientV2.java
View file @
37629854
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment