atlas git commit: ATLAS-2878: avoid retrieval of entiyWithExtInfo when extInfo is not needed
Repository: atlas Updated Branches: refs/heads/branch-0.8 110db1a40 -> 16456800b ATLAS-2878: avoid retrieval of entiyWithExtInfo when extInfo is not needed Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/16456800 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/16456800 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/16456800 Branch: refs/heads/branch-0.8 Commit: 16456800b2c11969cc17de3a6423b955a958a5b2 Parents: 110db1a Author: Madhan Neethiraj Authored: Tue Sep 18 12:56:08 2018 -0700 Committer: Madhan Neethiraj Committed: Tue Sep 18 15:15:39 2018 -0700 -- .../repository/graph/FullTextMapperV2.java | 45 ++ .../java/org/apache/atlas/RequestContext.java | 49 +--- .../NotificationHookConsumerTest.java | 3 +- 3 files changed, 69 insertions(+), 28 deletions(-) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/16456800/repository/src/main/java/org/apache/atlas/repository/graph/FullTextMapperV2.java -- diff --git a/repository/src/main/java/org/apache/atlas/repository/graph/FullTextMapperV2.java b/repository/src/main/java/org/apache/atlas/repository/graph/FullTextMapperV2.java index 76acf8c..5b5158c 100644 --- a/repository/src/main/java/org/apache/atlas/repository/graph/FullTextMapperV2.java +++ b/repository/src/main/java/org/apache/atlas/repository/graph/FullTextMapperV2.java @@ -73,8 +73,16 @@ public class FullTextMapperV2 { * @throws AtlasBaseException */ public String getIndexTextForClassifications(String guid, List classifications) throws AtlasBaseException { -String ret = null; -AtlasEntityWithExtInfo entityWithExtInfo = getAndCacheEntity(guid); +String ret = null; +final AtlasEntityWithExtInfo entityWithExtInfo; + +if (followReferences) { +entityWithExtInfo = getAndCacheEntityWithExtInfo(guid); +} else { +AtlasEntity entity = getAndCacheEntity(guid); + +entityWithExtInfo = entity != null ? new AtlasEntityWithExtInfo(entity) : null; +} if (entityWithExtInfo != null) { StringBuilder sb = new StringBuilder(); @@ -100,13 +108,13 @@ public class FullTextMapperV2 { } public String getIndexTextForEntity(String guid) throws AtlasBaseException { -String ret = null; -AtlasEntityWithExtInfo entity = getAndCacheEntity(guid); +String ret= null; +AtlasEntity entity = getAndCacheEntity(guid); if (entity != null) { StringBuilder sb = new StringBuilder(); -map(entity.getEntity(), entity, sb, new HashSet()); +map(entity, null, sb, new HashSet()); ret = sb.toString(); } @@ -165,7 +173,7 @@ public class FullTextMapperV2 { private void mapAttribute(Object value, AtlasEntityExtInfo entityExtInfo, StringBuilder sb, Set processedGuids) throws AtlasBaseException { if (value instanceof AtlasObjectId) { -if (followReferences) { +if (followReferences && entityExtInfo != null) { AtlasObjectId objectId = (AtlasObjectId) value; AtlasEntity entity = entityExtInfo.getEntity(objectId.getGuid()); @@ -202,9 +210,28 @@ public class FullTextMapperV2 { } } -private AtlasEntityWithExtInfo getAndCacheEntity(String guid) throws AtlasBaseException { -RequestContext context = RequestContext.get(); -AtlasEntityWithExtInfo entityWithExtInfo = context.getInstanceV2(guid); +private AtlasEntity getAndCacheEntity(String guid) throws AtlasBaseException { +RequestContext context = RequestContext.get(); +AtlasEntityentity = context.getEntity(guid); + +if (entity == null) { +entity = entityGraphRetriever.toAtlasEntity(guid); + +if (entity != null) { +context.cache(entity); + +if (LOG.isDebugEnabled()) { +LOG.debug("Cache miss -> GUID = {}", guid); +} +} +} + +return entity; +} + +private AtlasEntityWithExtInfo getAndCacheEntityWithExtInfo(String guid) throws AtlasBaseException { +RequestContext context = RequestContext.get(); +AtlasEntityWithExtInfo entityWithExtInfo = context.getEntityWithExtInfo(guid); if (entityWithExtInfo == null) { entityWithExtInfo = entityGraphRetriever.toAtlasEntityWithExtInfo(guid); http://git-wip-us.apache.org/repos/asf/atlas/blob/16456800/server-api/src/main/java/org/apache/atlas/RequestContext.java ---
atlas git commit: ATLAS-2878: avoid retrieval of entiyWithExtInfo when extInfo is not needed
Repository: atlas Updated Branches: refs/heads/branch-1.0 a00875362 -> be96cd4aa ATLAS-2878: avoid retrieval of entiyWithExtInfo when extInfo is not needed Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/be96cd4a Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/be96cd4a Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/be96cd4a Branch: refs/heads/branch-1.0 Commit: be96cd4aa327746d4c51cafb9653225f0fe6d15c Parents: a008753 Author: Madhan Neethiraj Authored: Tue Sep 18 11:16:50 2018 -0700 Committer: Madhan Neethiraj Committed: Tue Sep 18 14:08:01 2018 -0700 -- .../repository/audit/EntityAuditListenerV2.java | 6 +-- .../converters/AtlasInstanceConverter.java | 30 ++--- .../repository/graph/FullTextMapperV2.java | 45 .../graph/v2/AtlasEntityChangeNotifier.java | 9 ++-- .../store/graph/v2/EntityGraphMapper.java | 14 +++--- .../java/org/apache/atlas/RequestContext.java | 24 --- 6 files changed, 90 insertions(+), 38 deletions(-) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/be96cd4a/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java -- diff --git a/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java b/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java index 91e1f63..8ca8c9a 100644 --- a/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java +++ b/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java @@ -180,8 +180,7 @@ public class EntityAuditListenerV2 implements EntityChangeListenerV2 { List events = new ArrayList<>(); for (AtlasRelatedObjectId relatedObjectId : entities) { -AtlasEntityWithExtInfo entityWithExtInfo = instanceConverter.getAndCacheEntity(relatedObjectId.getGuid()); -AtlasEntityentity= (entityWithExtInfo != null) ? entityWithExtInfo.getEntity() : null; +AtlasEntity entity = instanceConverter.getAndCacheEntity(relatedObjectId.getGuid()); if (entity != null) { events.add(createEvent(entity, TERM_ADD, "Added term: " + term.toAuditString())); @@ -198,8 +197,7 @@ public class EntityAuditListenerV2 implements EntityChangeListenerV2 { List events = new ArrayList<>(); for (AtlasRelatedObjectId relatedObjectId : entities) { -AtlasEntityWithExtInfo entityWithExtInfo = instanceConverter.getAndCacheEntity(relatedObjectId.getGuid()); -AtlasEntityentity= (entityWithExtInfo != null) ? entityWithExtInfo.getEntity() : null; +AtlasEntity entity = instanceConverter.getAndCacheEntity(relatedObjectId.getGuid()); if (entity != null) { events.add(createEvent(entity, TERM_DELETE, "Deleted term: " + term.toAuditString())); http://git-wip-us.apache.org/repos/asf/atlas/blob/be96cd4a/repository/src/main/java/org/apache/atlas/repository/converters/AtlasInstanceConverter.java -- diff --git a/repository/src/main/java/org/apache/atlas/repository/converters/AtlasInstanceConverter.java b/repository/src/main/java/org/apache/atlas/repository/converters/AtlasInstanceConverter.java index b26b353..1f0cc86 100644 --- a/repository/src/main/java/org/apache/atlas/repository/converters/AtlasInstanceConverter.java +++ b/repository/src/main/java/org/apache/atlas/repository/converters/AtlasInstanceConverter.java @@ -28,6 +28,7 @@ import org.apache.atlas.model.TypeCategory; import org.apache.atlas.model.instance.AtlasClassification; import org.apache.atlas.model.instance.AtlasEntity; import org.apache.atlas.model.instance.AtlasEntity.AtlasEntitiesWithExtInfo; +import org.apache.atlas.model.instance.AtlasEntity.AtlasEntityWithExtInfo; import org.apache.atlas.model.instance.AtlasEntityHeader; import org.apache.atlas.model.instance.EntityMutationResponse; import org.apache.atlas.model.instance.EntityMutations.EntityOperation; @@ -94,12 +95,12 @@ public class AtlasInstanceConverter { } public Referenceable getReferenceable(String guid) throws AtlasBaseException { -AtlasEntity.AtlasEntityWithExtInfo entity = getAndCacheEntity(guid); +AtlasEntityWithExtInfo entity = getAndCacheEntityExtInfo(guid); return getReferenceable(entity); } -public Referenceable getReferenceable(AtlasEntity.AtlasEntityWithExtInfo entity) throws AtlasBaseException { +public Referenceable getReferenceable(AtlasEntityWithExt
atlas git commit: ATLAS-2878: avoid retrieval of entiyWithExtInfo when extInfo is not needed
Repository: atlas Updated Branches: refs/heads/master 48e522497 -> a064e0924 ATLAS-2878: avoid retrieval of entiyWithExtInfo when extInfo is not needed (cherry picked from commit 8e7ecf72f32ef6ca282a314d85761742e229a48b) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/a064e092 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/a064e092 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/a064e092 Branch: refs/heads/master Commit: a064e09242a0b1259d7b1227913786d2fb98f695 Parents: 48e5224 Author: Madhan Neethiraj Authored: Tue Sep 18 11:16:50 2018 -0700 Committer: Madhan Neethiraj Committed: Tue Sep 18 11:35:24 2018 -0700 -- .../repository/audit/EntityAuditListenerV2.java | 6 +-- .../converters/AtlasInstanceConverter.java | 30 ++--- .../repository/graph/FullTextMapperV2.java | 45 .../graph/v2/AtlasEntityChangeNotifier.java | 9 ++-- .../store/graph/v2/EntityGraphMapper.java | 14 +++--- .../java/org/apache/atlas/RequestContext.java | 24 --- 6 files changed, 90 insertions(+), 38 deletions(-) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/a064e092/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java -- diff --git a/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java b/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java index 91e1f63..8ca8c9a 100644 --- a/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java +++ b/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java @@ -180,8 +180,7 @@ public class EntityAuditListenerV2 implements EntityChangeListenerV2 { List events = new ArrayList<>(); for (AtlasRelatedObjectId relatedObjectId : entities) { -AtlasEntityWithExtInfo entityWithExtInfo = instanceConverter.getAndCacheEntity(relatedObjectId.getGuid()); -AtlasEntityentity= (entityWithExtInfo != null) ? entityWithExtInfo.getEntity() : null; +AtlasEntity entity = instanceConverter.getAndCacheEntity(relatedObjectId.getGuid()); if (entity != null) { events.add(createEvent(entity, TERM_ADD, "Added term: " + term.toAuditString())); @@ -198,8 +197,7 @@ public class EntityAuditListenerV2 implements EntityChangeListenerV2 { List events = new ArrayList<>(); for (AtlasRelatedObjectId relatedObjectId : entities) { -AtlasEntityWithExtInfo entityWithExtInfo = instanceConverter.getAndCacheEntity(relatedObjectId.getGuid()); -AtlasEntityentity= (entityWithExtInfo != null) ? entityWithExtInfo.getEntity() : null; +AtlasEntity entity = instanceConverter.getAndCacheEntity(relatedObjectId.getGuid()); if (entity != null) { events.add(createEvent(entity, TERM_DELETE, "Deleted term: " + term.toAuditString())); http://git-wip-us.apache.org/repos/asf/atlas/blob/a064e092/repository/src/main/java/org/apache/atlas/repository/converters/AtlasInstanceConverter.java -- diff --git a/repository/src/main/java/org/apache/atlas/repository/converters/AtlasInstanceConverter.java b/repository/src/main/java/org/apache/atlas/repository/converters/AtlasInstanceConverter.java index b26b353..1f0cc86 100644 --- a/repository/src/main/java/org/apache/atlas/repository/converters/AtlasInstanceConverter.java +++ b/repository/src/main/java/org/apache/atlas/repository/converters/AtlasInstanceConverter.java @@ -28,6 +28,7 @@ import org.apache.atlas.model.TypeCategory; import org.apache.atlas.model.instance.AtlasClassification; import org.apache.atlas.model.instance.AtlasEntity; import org.apache.atlas.model.instance.AtlasEntity.AtlasEntitiesWithExtInfo; +import org.apache.atlas.model.instance.AtlasEntity.AtlasEntityWithExtInfo; import org.apache.atlas.model.instance.AtlasEntityHeader; import org.apache.atlas.model.instance.EntityMutationResponse; import org.apache.atlas.model.instance.EntityMutations.EntityOperation; @@ -94,12 +95,12 @@ public class AtlasInstanceConverter { } public Referenceable getReferenceable(String guid) throws AtlasBaseException { -AtlasEntity.AtlasEntityWithExtInfo entity = getAndCacheEntity(guid); +AtlasEntityWithExtInfo entity = getAndCacheEntityExtInfo(guid); return getReferenceable(entity); } -public Referenceable getReferenceable(AtlasEntity.AtlasEntityWithExtInfo entity) throws AtlasBaseException {
atlas git commit: ATLAS-2872: updated HiveHook to purge name cache periodically
Repository: atlas Updated Branches: refs/heads/branch-0.8 2f7348988 -> 110db1a40 ATLAS-2872: updated HiveHook to purge name cache periodically Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/110db1a4 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/110db1a4 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/110db1a4 Branch: refs/heads/branch-0.8 Commit: 110db1a40b84b9a5ad2590233ee3f03eeae2ec78 Parents: 2f73489 Author: Madhan Neethiraj Authored: Thu Sep 13 18:21:31 2018 -0700 Committer: Madhan Neethiraj Committed: Tue Sep 18 12:01:21 2018 -0700 -- .../atlas/hive/hook/AtlasHiveHookContext.java | 50 +--- .../org/apache/atlas/hive/hook/HiveHook.java| 126 --- 2 files changed, 112 insertions(+), 64 deletions(-) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/110db1a4/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/AtlasHiveHookContext.java -- diff --git a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/AtlasHiveHookContext.java b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/AtlasHiveHookContext.java index c31d94c..b9e4256 100644 --- a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/AtlasHiveHookContext.java +++ b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/AtlasHiveHookContext.java @@ -19,10 +19,10 @@ package org.apache.atlas.hive.hook; import org.apache.atlas.model.instance.AtlasEntity; +import org.apache.atlas.hive.hook.HiveHook.HiveHookObjectNamesCache; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.RandomStringUtils; import org.apache.hadoop.hive.metastore.api.Database; -import org.apache.hadoop.hive.ql.hooks.Entity; import org.apache.hadoop.hive.ql.hooks.HookContext; import org.apache.hadoop.hive.ql.hooks.WriteEntity; import org.apache.hadoop.hive.ql.metadata.Hive; @@ -46,12 +46,14 @@ public class AtlasHiveHookContext { private final HookContext hiveContext; private final Hive hive; private final Map qNameEntityMap = new HashMap<>(); +private final HiveHookObjectNamesCache knownObjects; -public AtlasHiveHookContext(HiveHook hook, HiveOperation hiveOperation, HookContext hiveContext) throws Exception { +public AtlasHiveHookContext(HiveHook hook, HiveOperation hiveOperation, HookContext hiveContext, HiveHookObjectNamesCache knownObjects) throws Exception { this.hook = hook; this.hiveOperation = hiveOperation; this.hiveContext = hiveContext; this.hive = Hive.get(hiveContext.getConf()); +this.knownObjects = knownObjects; init(); } @@ -102,39 +104,47 @@ public class AtlasHiveHookContext { } public boolean isKnownDatabase(String dbQualifiedName) { -return hook.isKnownDatabase(dbQualifiedName); +return knownObjects != null && dbQualifiedName != null ? knownObjects.isKnownDatabase(dbQualifiedName) : false; } public boolean isKnownTable(String tblQualifiedName) { -return hook.isKnownTable(tblQualifiedName); +return knownObjects != null && tblQualifiedName != null ? knownObjects.isKnownTable(tblQualifiedName) : false; } public void addToKnownEntities(Collection entities) { -hook.addToKnownEntities(entities); +if (knownObjects != null && entities != null) { +knownObjects.addToKnownEntities(entities); +} } public void removeFromKnownDatabase(String dbQualifiedName) { -hook.removeFromKnownDatabase(dbQualifiedName); +if (knownObjects != null && dbQualifiedName != null) { +knownObjects.removeFromKnownDatabase(dbQualifiedName); +} } public void removeFromKnownTable(String tblQualifiedName) { -hook.removeFromKnownTable(tblQualifiedName); +if (knownObjects != null && tblQualifiedName != null) { +knownObjects.removeFromKnownTable(tblQualifiedName); +} } private void init() { -String operationName = hiveContext.getOperationName(); - -if (operationName != null && operationName.startsWith("CREATE") || operationName.startsWith("ALTER")) { -if (CollectionUtils.isNotEmpty(hiveContext.getOutputs())) { -for (WriteEntity output : hiveContext.getOutputs()) { -switch (output.getType()) { -case DATABASE: - hook.removeFromKnownDatabase(getQualifiedName(output.getDatabase())); -break; - -case TABLE: - hook.removeFromKnownTable(getQualifiedName(out
atlas git commit: ATLAS-2781: Hard Delete : Deleting an entity which is associated to an term associated to a tag fails
Repository: atlas Updated Branches: refs/heads/branch-1.0 dd29cb91c -> a00875362 ATLAS-2781: Hard Delete : Deleting an entity which is associated to an term associated to a tag fails (cherry picked from commit 59ae59dbaf8ce4a35886d5a9e5af7020666b1763) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/a0087536 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/a0087536 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/a0087536 Branch: refs/heads/branch-1.0 Commit: a00875362d724a22b2d00d1645f5a28dc8bcd075 Parents: dd29cb9 Author: Sarath Subramanian Authored: Fri Jul 6 15:24:41 2018 -0700 Committer: Sarath Subramanian Committed: Tue Sep 18 11:39:36 2018 -0700 -- .../repository/store/graph/v2/AtlasEntityChangeNotifier.java | 7 +++ 1 file changed, 7 insertions(+) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/a0087536/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityChangeNotifier.java -- diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityChangeNotifier.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityChangeNotifier.java index 1b09d49..9d8afdf 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityChangeNotifier.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityChangeNotifier.java @@ -246,7 +246,14 @@ public class AtlasEntityChangeNotifier { return; } +RequestContext context = RequestContext.get(); + for (String guid : entityPropagationMap.keySet()) { +// if entity is deleted, don't send propagated classifications add/remove notifications. +if (context.isDeletedEntity(guid)) { +continue; +} + AtlasEntityWithExtInfo entityWithExtInfo = instanceConverter.getAndCacheEntity(guid); AtlasEntityentity= entityWithExtInfo != null ? entityWithExtInfo.getEntity() : null;
atlas git commit: ATLAS-2634: Avoid duplicate message processing.
Repository: atlas Updated Branches: refs/heads/branch-0.8 37f59dc95 -> 2f7348988 ATLAS-2634: Avoid duplicate message processing. Signed-off-by: Ashutosh Mestry (cherry picked from commit f29a2b7bb2b555e68d7f5e2b43221f85877aa39c) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/2f734898 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/2f734898 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/2f734898 Branch: refs/heads/branch-0.8 Commit: 2f7348988b992e8a9e5a71cf1a483803fa7d6db8 Parents: 37f59dc Author: Ashutosh Mestry Authored: Thu May 3 16:22:10 2018 -0700 Committer: Madhan Neethiraj Committed: Tue Sep 18 10:58:21 2018 -0700 -- .../apache/atlas/kafka/KafkaNotification.java | 3 +- .../notification/NotificationHookConsumer.java | 42 +++- .../NotificationHookConsumerKafkaTest.java | 67 3 files changed, 108 insertions(+), 4 deletions(-) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/2f734898/notification/src/main/java/org/apache/atlas/kafka/KafkaNotification.java -- diff --git a/notification/src/main/java/org/apache/atlas/kafka/KafkaNotification.java b/notification/src/main/java/org/apache/atlas/kafka/KafkaNotification.java index 4c63027..4c753d2 100644 --- a/notification/src/main/java/org/apache/atlas/kafka/KafkaNotification.java +++ b/notification/src/main/java/org/apache/atlas/kafka/KafkaNotification.java @@ -245,8 +245,9 @@ public class KafkaNotification extends AbstractNotification implements Service { } +@VisibleForTesting // Get properties for consumer request -private Properties getConsumerProperties(NotificationType type) { +public Properties getConsumerProperties(NotificationType type) { // find the configured group id for the given notification type String groupId = properties.getProperty(type.toString().toLowerCase() + "." + CONSUMER_GROUP_ID_PROPERTY); http://git-wip-us.apache.org/repos/asf/atlas/blob/2f734898/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java -- diff --git a/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java b/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java index 88a8cce..1a567af 100644 --- a/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java +++ b/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java @@ -286,10 +286,13 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl private final List failedMessages = new ArrayList<>(); private final AdaptiveWaiter adaptiveWaiter = new AdaptiveWaiter(minWaitDuration, maxWaitDuration, minWaitDuration); +@VisibleForTesting +final FailedCommitOffsetRecorder failedCommitOffsetRecorder; public HookConsumer(NotificationConsumer consumer) { super("atlas-hook-consumer-thread", false); this.consumer = consumer; +failedCommitOffsetRecorder = new FailedCommitOffsetRecorder(); } @Override @@ -342,6 +345,11 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl } try { + if(failedCommitOffsetRecorder.isMessageReplayed(kafkaMsg.getOffset())) { +commit(kafkaMsg); +return; +} + // Used for intermediate conversions during create and update for (int numRetries = 0; numRetries < maxRetries; numRetries++) { if (LOG.isDebugEnabled()) { @@ -538,9 +546,17 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl } private void commit(AtlasKafkaMessage kafkaMessage) { -recordFailedMessages(); -TopicPartition partition = new TopicPartition("ATLAS_HOOK", kafkaMessage.getPartition()); -consumer.commit(partition, kafkaMessage.getOffset() + 1); +boolean commitSucceessStatus = false; +try { +recordFailedMessages(); + +TopicPartition partition = new TopicPartition("ATLAS_HOOK", kafkaMessage.getPartition()); + +consumer.commit(partition, kafkaMessage.getOffset() + 1); +commitSucceessStatus = true; +} finally { + failedCommitOffsetRecorder.recordIfFailed(commitSucceessStatus, kafkaMessage.getOffset()); +} } boolean serverAvailable(Timer timer) { @
atlas git commit: ATLAS-2877: updated notification processing to wait only before retry
Repository: atlas Updated Branches: refs/heads/branch-0.8 dc5ebabe1 -> 37f59dc95 ATLAS-2877: updated notification processing to wait only before retry (cherry picked from commit 48e522497f960ac9cc54853c3cb0e9af3e0111f3) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/37f59dc9 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/37f59dc9 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/37f59dc9 Branch: refs/heads/branch-0.8 Commit: 37f59dc954d5e2575d2068d80ffa5057e07266e0 Parents: dc5ebab Author: Madhan Neethiraj Authored: Tue Sep 18 09:01:25 2018 -0700 Committer: Madhan Neethiraj Committed: Tue Sep 18 10:39:14 2018 -0700 -- .../notification/NotificationHookConsumer.java | 38 +++- 1 file changed, 22 insertions(+), 16 deletions(-) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/37f59dc9/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java -- diff --git a/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java b/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java index 475be9a..88a8cce 100644 --- a/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java +++ b/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java @@ -282,10 +282,10 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl @VisibleForTesting class HookConsumer extends ShutdownableThread { private final NotificationConsumer consumer; -private final AtomicBoolean shouldRun = new AtomicBoolean(false); -private List failedMessages = new ArrayList<>(); +private final AtomicBoolean shouldRun = new AtomicBoolean(false); +private final List failedMessages = new ArrayList<>(); +private final AdaptiveWaiter adaptiveWaiter = new AdaptiveWaiter(minWaitDuration, maxWaitDuration, minWaitDuration); -private final AdaptiveWaiter adaptiveWaiter = new AdaptiveWaiter(minWaitDuration, maxWaitDuration, minWaitDuration); public HookConsumer(NotificationConsumer consumer) { super("atlas-hook-consumer-thread", false); @@ -496,21 +496,27 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl } catch (Throwable e) { RequestContextV1.get().resetEntityGuidUpdates(); -LOG.warn("Error handling message", e); -try { -LOG.info("Sleeping for {} ms before retry", consumerRetryInterval); -Thread.sleep(consumerRetryInterval); -} catch (InterruptedException ie) { -LOG.error("Notification consumer thread sleep interrupted"); -} - if (numRetries == (maxRetries - 1)) { -LOG.warn("Max retries exceeded for message {}", message, e); -failedMessages.add(message); +String strMessage = AbstractNotification.getMessageJson(message); + +LOG.warn("Max retries exceeded for message {}", strMessage, e); + +failedMessages.add(strMessage); + if (failedMessages.size() >= failedMsgCacheSize) { recordFailedMessages(); } return; +} else { +LOG.warn("Error handling message", e); + +try { +LOG.info("Sleeping for {} ms before retry", consumerRetryInterval); + +Thread.sleep(consumerRetryInterval); +} catch (InterruptedException ie) { +LOG.error("Notification consumer thread sleep interrupted"); +} } } finally { RequestContext.clear(); @@ -525,8 +531,8 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl private void recordFailedMessages() { //logging failed messages -for (HookNotificationMessage message : failedMessages) { -FAILED_LOG.error("[DROPPED_NOTIFICATION] {}", AbstractNotification.getMessageJson(message)); +for (String message : failedMessages) { +FAILED_LOG.error("[DROPPED_N
atlas git commit: ATLAS-2877: updated notification processing to wait only before retry
Repository: atlas Updated Branches: refs/heads/branch-1.0 ea5de9b11 -> dd29cb91c ATLAS-2877: updated notification processing to wait only before retry (cherry picked from commit 48e522497f960ac9cc54853c3cb0e9af3e0111f3) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/dd29cb91 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/dd29cb91 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/dd29cb91 Branch: refs/heads/branch-1.0 Commit: dd29cb91c074e3f23a9b305a5e6406c47ac5040e Parents: ea5de9b Author: Madhan Neethiraj Authored: Tue Sep 18 09:01:25 2018 -0700 Committer: Madhan Neethiraj Committed: Tue Sep 18 10:17:08 2018 -0700 -- .../notification/NotificationHookConsumer.java | 31 +++- 1 file changed, 17 insertions(+), 14 deletions(-) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/dd29cb91/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java -- diff --git a/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java b/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java index d680e4e..9f832b9 100644 --- a/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java +++ b/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java @@ -294,7 +294,7 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl class HookConsumer extends ShutdownableThread { private final NotificationConsumer consumer; private final AtomicBoolean shouldRun = new AtomicBoolean(false); -private final List failedMessages = new ArrayList<>(); +private final List failedMessages = new ArrayList<>(); private final AdaptiveWaiter adaptiveWaiter = new AdaptiveWaiter(minWaitDuration, maxWaitDuration, minWaitDuration); @VisibleForTesting @@ -523,26 +523,29 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl } catch (Throwable e) { RequestContext.get().resetEntityGuidUpdates(); -LOG.warn("Error handling message", e); -try { -LOG.info("Sleeping for {} ms before retry", consumerRetryInterval); - -Thread.sleep(consumerRetryInterval); -} catch (InterruptedException ie) { -LOG.error("Notification consumer thread sleep interrupted"); -} - if (numRetries == (maxRetries - 1)) { -LOG.warn("Max retries exceeded for message {}", message, e); +String strMessage = AbstractNotification.getMessageJson(message); + +LOG.warn("Max retries exceeded for message {}", strMessage, e); isFailedMsg = true; -failedMessages.add(message); +failedMessages.add(strMessage); if (failedMessages.size() >= failedMsgCacheSize) { recordFailedMessages(); } return; +} else { +LOG.warn("Error handling message", e); + +try { +LOG.info("Sleeping for {} ms before retry", consumerRetryInterval); + +Thread.sleep(consumerRetryInterval); +} catch (InterruptedException ie) { +LOG.error("Notification consumer thread sleep interrupted"); +} } } finally { RequestContext.clear(); @@ -564,8 +567,8 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl private void recordFailedMessages() { //logging failed messages -for (HookNotification message : failedMessages) { -FAILED_LOG.error("[DROPPED_NOTIFICATION] {}", AbstractNotification.getMessageJson(message)); +for (String message : failedMessages) { +FAILED_LOG.error("[DROPPED_NOTIFICATION] {}", message); } failedMessages.clear();
atlas git commit: ATLAS-2877: updated notification processing to wait only before retry
Repository: atlas Updated Branches: refs/heads/master 3176d1a1e -> 48e522497 ATLAS-2877: updated notification processing to wait only before retry Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/48e52249 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/48e52249 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/48e52249 Branch: refs/heads/master Commit: 48e522497f960ac9cc54853c3cb0e9af3e0111f3 Parents: 3176d1a Author: Madhan Neethiraj Authored: Tue Sep 18 09:01:25 2018 -0700 Committer: Madhan Neethiraj Committed: Tue Sep 18 09:10:59 2018 -0700 -- .../notification/NotificationHookConsumer.java | 31 +++- 1 file changed, 17 insertions(+), 14 deletions(-) -- http://git-wip-us.apache.org/repos/asf/atlas/blob/48e52249/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java -- diff --git a/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java b/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java index d680e4e..9f832b9 100644 --- a/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java +++ b/webapp/src/main/java/org/apache/atlas/notification/NotificationHookConsumer.java @@ -294,7 +294,7 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl class HookConsumer extends ShutdownableThread { private final NotificationConsumer consumer; private final AtomicBoolean shouldRun = new AtomicBoolean(false); -private final List failedMessages = new ArrayList<>(); +private final List failedMessages = new ArrayList<>(); private final AdaptiveWaiter adaptiveWaiter = new AdaptiveWaiter(minWaitDuration, maxWaitDuration, minWaitDuration); @VisibleForTesting @@ -523,26 +523,29 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl } catch (Throwable e) { RequestContext.get().resetEntityGuidUpdates(); -LOG.warn("Error handling message", e); -try { -LOG.info("Sleeping for {} ms before retry", consumerRetryInterval); - -Thread.sleep(consumerRetryInterval); -} catch (InterruptedException ie) { -LOG.error("Notification consumer thread sleep interrupted"); -} - if (numRetries == (maxRetries - 1)) { -LOG.warn("Max retries exceeded for message {}", message, e); +String strMessage = AbstractNotification.getMessageJson(message); + +LOG.warn("Max retries exceeded for message {}", strMessage, e); isFailedMsg = true; -failedMessages.add(message); +failedMessages.add(strMessage); if (failedMessages.size() >= failedMsgCacheSize) { recordFailedMessages(); } return; +} else { +LOG.warn("Error handling message", e); + +try { +LOG.info("Sleeping for {} ms before retry", consumerRetryInterval); + +Thread.sleep(consumerRetryInterval); +} catch (InterruptedException ie) { +LOG.error("Notification consumer thread sleep interrupted"); +} } } finally { RequestContext.clear(); @@ -564,8 +567,8 @@ public class NotificationHookConsumer implements Service, ActiveStateChangeHandl private void recordFailedMessages() { //logging failed messages -for (HookNotification message : failedMessages) { -FAILED_LOG.error("[DROPPED_NOTIFICATION] {}", AbstractNotification.getMessageJson(message)); +for (String message : failedMessages) { +FAILED_LOG.error("[DROPPED_NOTIFICATION] {}", message); } failedMessages.clear();
[05/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/lib/swagger-oauth.js -- diff --git a/1.1.0/api/v2/ui/lib/swagger-oauth.js b/1.1.0/api/v2/ui/lib/swagger-oauth.js new file mode 100644 index 000..7160291 --- /dev/null +++ b/1.1.0/api/v2/ui/lib/swagger-oauth.js @@ -0,0 +1 @@ +function handleLogin(){var e=[],o=window.swaggerUiAuth.authSchemes||window.swaggerUiAuth.securityDefinitions;if(o){var i,n=o;for(i in n){var a=n[i];if("oauth2"===a.type&&a.scopes){var t;if(Array.isArray(a.scopes)){var p;for(p=0;p','Select OAuth2.0 Scopes','',"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes.",'Learn how to use',"",""+appName+" API requires the following scopes. Select which ones you want to grant to Swagger UI.",'',"",'','AuthorizeCancel',"",""].join("")),$(document.body).append(popupDialog),popup=popupDialog.find("ul.api-popup-scopes").empty(),p=0;p'+t.scope,t.description&&($.map(o,function(e,o){return o}).length>1?str+=''+t.description+" ("+t.OAuthSchemeKey+")":str+=''+t.description+""),str+="",popup.append(str);var r=$(window),s=r.width(),c=r.height(),l=r.scrollTop(),d=popupDialog.outerWidth(),u=popupDialog.outerHeight(),h=(c-u)/2+l,g=(s-d)/2;popupDialog.css({top:(h<0?0:h)+"px",left:(g<0?0:g)+"px"}),popupDialog.find("button.api-popup-cancel").click(function (){popupMask.hide(),popupDialog.hide(),popupDialog.empty(),popupDialog=[]}),$("button.api-popup-authbtn").unbind(),popupDialog.find("button.api-popup-authbtn").click(function(){function e(e){return e.vendorExtensions["x-tokenName"]||e.tokenName}popupMask.hide(),popupDialog.hide();var o,i=window.swaggerUi.api.authSchemes,n=window.location,a=location.pathname.substring(0,location.pathname.lastIndexOf("/")),t=n.protocol+"//"+n.host+a+"/o2c.html",p=window.oAuthRedirectUrl||t,r=null,s=[],c=popup.find("input:checked"),l=[];for(k=0;k0?void log("auth unable initialize oauth: "+i):($("pre code").each(function(e,o){hljs.highlightBlock(o)}),$(".api-ic").unbind(),void $(".api-ic").click(function(e){$(e.target).hasClass("ic-off")?handleLogin():handleLogout()}))}function clientCredentialsFlow(e,o,i){var n={client_id:clientId,cli ent_secret:clientSecret,scope:e.join(" "),grant_type:"client_credentials"};$.ajax({url:o,type:"POST",data:n,success:function(e,o,n){onOAuthComplete(e,i)},error:function(e,o,i){onOAuthComplete("")}})}var appName,popupMask,popupDialog,clientId,realm,redirect_uri,clientSecret,scopeSeparator,additionalQueryStringParams;window.processOAuthCode=function(e){var o=e.state,i=window.location,n=location.pathname.substring(0,location.pathname.lastIndexOf("/")),a=i.protocol+"//"+i.host+n+"/o2c.html",t=window.oAuthRedirectUrl||a,p={client_id:clientId,code:e.code,grant_type:"authorization_code",redirect_uri:t};clientSecret&&(p.client_secret=clientSecret),$.ajax({url:window.swaggerUiAuth.tokenUrl,type:"POST",data:p,success:function(e,i,n){onOAuthComplete(e,o)},error:function(e,o,i){onOAuthComplete("")}})},window.onOAuthComplete=function(e,o){if(e)if(e.error){var i=$("input[type=checkbox],.secured");i.each(function(e){i[e].checked=!1}),alert(e.error)}else{var n=e[window.swaggerUiAuth.tokenName];if(o ||(o=e.state),n){var a=null;$.each($(".auth .api-ic .api_information_panel"),function(e,o){var i=o;if(i&&i.childNodes){var n=[];$.each(i.childNodes,function(e,o){var i=o.innerHTML;i&&n.push(i)});for(var t=[],p=0;p0?(a=o.parentNode.parentNode,$(a.parentNode).find(".api-ic.ic-on").addClass("ic-off"),$(a.parentNode).find(".api-ic.ic-on").removeClass("ic-on"),$(a).find(".api-ic").addClass("ic-warning"),$(a).find(".api-ic").removeClass("ic-error")):(a=o.parentNode.parentNode,$(a.parentNode).find(".api-ic.ic-off").addClass("ic-on"),$(a.parentNode).find(".api-ic.ic-off").removeClass("ic-off"),$(a).find(".api-ic").addClass("ic-info"),$(a).find(".api-ic").removeClass("ic-warning"),$(a).find(".api-ic").removeClass("ic-error"))}}),"undefined"!=typeof window.swaggerUi&&(window.swaggerUi.api.clientAuthorizations.add(window.swaggerUiAuth.OAuthSchemeKey,new SwaggerClient.ApiKeyAuthorization("Aut horization","Bearer "+n,"header")),window.swaggerUi.load())}}}; \ No newline at end of file http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/lib/underscore-min.js -- diff --git a/1.1.0/api/v2/ui/lib/underscore-min.js b/1.1.0/api/v2/ui/lib/underscore-min.js new file mode 100644 index 000..11f1d96 --- /dev/null +++ b/1.1.0/api/v2/ui/lib/underscore-min.js @@ -0,0 +1,6 @@ +// Underscore.js 1.7.0 +// http://underscorejs.org +// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors +// Underscore may be freely distributed under the MIT license. +(function(){var n=this,t=n._,r=Array.prototype,e=Object.prototype,u=Funct
[26/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/index.html -- diff --git a/1.1.0/api/v2/index.html b/1.1.0/api/v2/index.html new file mode 100644 index 000..80c4261 --- /dev/null +++ b/1.1.0/api/v2/index.html @@ -0,0 +1,396 @@ + + + + + + + + + Atlas REST API + + + + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css";> + + + + + + + + + + + + + + + Toggle navigation + + + + +Atlas REST API + + + + Resources + Data Types + + + + + + + + + + Resources + JSON + XML + + Back to Top + + + + + + Home + + + +Atlas exposes a variety of REST endpoints to work with types, entities, lineage and data discovery. + + + Resources + + +There is a WADL document available that describes the resources API. + + + +You may also enjoy the interactive interface provided for this API by http://swagger.io";>Swagger. + + +Try it out! + + + + + + name + path + methods + description + + + + +DiscoveryREST + +/v2/search/attribute + /v2/search/basic + /v2/search/dsl + /v2/search/fulltext + /v2/search/relationship + /v2/search/saved + /v2/search/saved/{guid} + /v2/search/saved/{name} + /v2/search/saved/execute/{name} + /v2/search/saved/execute/guid/{guid} + +GET + GET POST + GET + GET + GET + GET POST PUT + DELETE + GET + GET + GET + +REST interface for data discovery using dsl or full text search + + + +EntityREST + +/v2/entity + /v2/entity/bulk + /v2/entity/bulk/classification + /v2/entity/guid/{guid} + /v2/entity/{guid}/audit + /v2/entity/guid/{guid}/classifications + /v2/entity/uniqueAttribute/type/{typeName} + /v2/entity/guid/{guid}/classification/{classificationName} + /v2/entity/uniqueAttribute/type/{typeName}/classifications + /v2/entity/uniqueAttribute/type/{typeName}/classification/{classificationName} + +POST + DELETE GET POST + POST + DELETE GET PUT + GET + GET POST PUT + DELETE GET PUT + DELETE GET + POST PUT + DELETE + +REST for a single entity + + + +GlossaryREST + +/v2/glossary + /v2/glossary/categories + /v2/glossary/category + /v2/glossary/term + /v2/glossary/terms + /v2/glossary/{glossaryGuid} + /v2/glossary/category/{categoryGuid} + /v2/glossary/term/{termGuid} + /v2/glossary/{glossaryGuid}/categories + /v2/glossary/{glossaryGuid}/detailed + /v2/glossary/{glossaryGuid}/partial + /v2/glossary/{glossaryGuid}/terms + /v2/glossary/category/{categoryGuid}/partial + /v2/glossary/category/{categoryGuid}/related + /v2/glossary/category/{categoryGuid}/terms + /v2/glossary/term/{termGuid}/partial + /v2/glossary/terms/{termGuid}/assignedEntities + /v2/glossary/terms/{termGuid}/related + /v2/glossary/{glossaryGuid}/categories/headers + /v2/glossary/{glossaryGuid}/terms/headers + +GET POST + POST + POST + POST + POST + DELETE GET PUT + DELETE GET PUT + DELETE GET PUT + GET + GET + PUT + GET + PUT + GET + GET + PUT + DELETE GET POST + GET + GET + GET + + + + + +LineageREST + +/v2/lineage/{guid} + +GET + +REST interface for an entity's lineage information + + + +RelationshipREST + +/v2/relationship + /v2/relationship/guid/{guid} + +POST PUT + DELETE GET + +REST interface for entity relationships. + + + +TypesREST + +/v2/types/typedefs + /v2/types/typedefs/headers + /v2/types/classificationdef/guid/{guid} + /v2/types/classificationdef/name/{name} + /v2/types/entitydef/guid/{guid} + /v2/types/entitydef/name/{name} + /v2/types/enumdef/guid/{guid} + /v2/types/enumdef/name/{name} + /v2/types/relationshipdef/guid/{guid} + /v2/types/relationshipdef/name/{name} + /v2/types/structdef/guid/{guid} + /v2/types/structdef/name/{name} + /v2/types/typedef/guid/{guid} + /v2/types/typedef/name/{name} + +DELETE GET POST PUT + GET + GET + GET + GET + GET + GET + GET + GET + GET + GET + GET + GET + GET + +REST interface for CRUD operations on type definitions + + + + + + Data Types + + JSON + + + + +type +description + + + + +AtlasClassification + +An instance of a classification; it doesn't have an identity, this object exists only when associated with an entity. + + + +AtlasStruct + +Captures details of struct contents. Not instantiated directly, used only via AtlasEntity, AtlasClassification.
[20/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/resource_GlossaryREST.html -- diff --git a/1.1.0/api/v2/resource_GlossaryREST.html b/1.1.0/api/v2/resource_GlossaryREST.html new file mode 100644 index 000..f3e5717 --- /dev/null +++ b/1.1.0/api/v2/resource_GlossaryREST.html @@ -0,0 +1,2967 @@ + + + + + + + + + Atlas REST API: GlossaryREST + + + + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css";> + + + + + + + + + + + + + + + Toggle navigation + + + + +Atlas REST API: GlossaryREST + + + + Resources + Data Types + + + + + + + + + + GET /v2/glossary + POST /v2/glossary + POST /v2/glossary/categories + POST /v2/glossary/category + POST /v2/glossary/term + POST /v2/glossary/terms + DELETE /v2/glossary/{glossaryGuid} + GET /v2/glossary/{glossaryGuid} + PUT /v2/glossary/{glossaryGuid} + DELETE /v2/glossary/category/{categoryGuid} + GET /v2/glossary/category/{categoryGuid} + PUT /v2/glossary/category/{categoryGuid} + DELETE /v2/glossary/term/{termGuid} + GET /v2/glossary/term/{termGuid} + PUT /v2/glossary/term/{termGuid} + GET /v2/glossary/{glossaryGuid}/categories + GET /v2/glossary/{glossaryGuid}/detailed + PUT /v2/glossary/{glossaryGuid}/partial + GET /v2/glossary/{glossaryGuid}/terms + PUT /v2/glossary/category/{categoryGuid}/partial + GET /v2/glossary/category/{categoryGuid}/related + GET /v2/glossary/category/{categoryGuid}/terms + PUT /v2/glossary/term/{termGuid}/partial + DELETE /v2/glossary/terms/{termGuid}/assignedEntities + GET /v2/glossary/terms/{termGuid}/assignedEntities + POST /v2/glossary/terms/{termGuid}/assignedEntities + GET /v2/glossary/terms/{termGuid}/related + GET /v2/glossary/{glossaryGuid}/categories/headers + GET /v2/glossary/{glossaryGuid}/terms/headers + + Back to Top + + + + + + Home + Resources + GlossaryREST + + + GlossaryREST Resource + + + + +GET /v2/glossary + +Retrieve all glossaries registered with Atlas + + + Request Parameters + + +name +type +description +default + + + + +limit +query +page size - by default there is no paging +-1 + + +offset +query +offset for pagination purpose +0 + + +sort +query +Sort order, ASC (default) or DESC +ASC + + + + + + Response Codes + + +code +condition + + + + +200 +List of existing glossaries fitting the search criteria or empty list if nothing matches + + + + + + Response Body + + +media type +data type +description + + + + +application/json;charset=UTF-8 +(custom) + +List of glossary entities fitting the above criteria + + + +Example + + + + + Request + +GET /v2/glossary +Accept: application/json;charset=UTF-8 + + + + + Response + +HTTP/1.1 200 OK +Content-Type: application/json;charset=UTF-8 + + +... + + + + + + + + +POST /v2/glossary + +Create a glossary + + + Request Body + + +media type +data type +description + + + + +application/json;charset=UTF-8 +(custom) + +Glossary definition, terms & categories can be anchored to a glossary +using the anchor attribute when creating the Term/Category + + + + + + Response Codes + + +code +condition + + + + +200 +If glossary creation was successful + + +400 +If Glos
[11/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/lib/highlight.9.1.0.pack.js -- diff --git a/1.1.0/api/v2/ui/lib/highlight.9.1.0.pack.js b/1.1.0/api/v2/ui/lib/highlight.9.1.0.pack.js new file mode 100644 index 000..7b00c68 --- /dev/null +++ b/1.1.0/api/v2/ui/lib/highlight.9.1.0.pack.js @@ -0,0 +1 @@ +!function(e){"undefined"!=typeof exports?e(exports):(self.hljs=e({}),"function"==typeof define&&define.amd&&define("hljs",[],function(){return self.hljs}))}(function(e){function r(e){return e.replace(/&/gm,"&").replace(//gm,">")}function t(e){return e.nodeName.toLowerCase()}function n(e,r){var t=e&&e.exec(r);return t&&0==t.index}function a(e){return/^(no-?highlight|plain|text)$/i.test(e)}function c(e){var r,t,n,c=e.className+" ";if(c+=e.parentNode?e.parentNode.className:"",t=/\blang(?:uage)?-([\w-]+)\b/i.exec(c))return E(t[1])?t[1]:"no-highlight";for(c=c.split(/\s+/),r=0,n=c.length;n>r;r++)if(E(c[r])||a(c[r]))return c[r]}function i(e,r){var t,n={};for(t in e)n[t]=e[t];if(r)for(t in r)n[t]=r[t];return n}function o(e){var r=[];return function n(e,a){for(var c=e.firstChild;c;c=c.nextSibling)3==c.nodeType?a+=c.nodeValue.length:1==c.nodeType&&(r.push({event:"start",offset:a,node:c}),a=n(c,a),t(c).match(/br|hr|img|input/)||r.push({event:"stop",offset:a,node:c }));return a}(e,0),r}function s(e,n,a){function c(){return e.length&&n.length?e[0].offset!=n[0].offset?e[0].offset"}function o(e){l+=""}function s(e){("start"==e.event?i:o)(e.node)}for(var u=0,l="",f=[];e.length||n.length;){var b=c();if(l+=r(a.substr(u,b[0].offset-u)),u=b[0].offset,b==e){f.reverse().forEach(o);do s(b.splice(0,1)[0]),b=c();while(b==e&&b.length&&b[0].offset==u);f.reverse().forEach(i)}else"start"==b[0].event?f.push(b[0].node):f.pop(),s(b.splice(0,1)[0])}return l+r(a.substr(u))}function u(e){function r(e){return e&&e.source||e}function t(t,n){return new RegExp(r(t),"m"+(e.cI?"i":"")+(n?"g":""))}function n(a,c){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var o={},s=function(r,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");o[t[0]]=[r,t[ 1]?Number(t[1]):1]})};"string"==typeof a.k?s("keyword",a.k):Object.keys(a.k).forEach(function(e){s(e,a.k[e])}),a.k=o}a.lR=t(a.l||/\b\w+\b/,!0),c&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=r(a.e)||"",a.eW&&c.tE&&(a.tE+=(a.e?"|":"")+c.tE)),a.i&&(a.iR=t(a.i)),void 0===a.r&&(a.r=1),a.c||(a.c=[]);var u=[];a.c.forEach(function(e){e.v?e.v.forEach(function(r){u.push(i(e,r))}):u.push("self"==e?a:e)}),a.c=u,a.c.forEach(function(e){n(e,a)}),a.starts&&n(a.starts,c);var l=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(r).filter(Boolean);a.t=l.length?t(l.join("|"),!0):{exec:function(){return nulln(e)}function l(e,t,a,c){function i(e,r){for(var t=0;t";return c+=e+'">',c+r+i}function p(){if(!M.k)return r(B);var e="",t=0;M.lR.lastIndex=0;for(var n=M.lR.exec(B);n;){e+=r(B.substr(t,n.index-t));var a=b(M,n);a?(L+=a[1],e+=g(a[0],r(n[0]))):e+=r(n[0]),t=M.lR.lastIndex,n=M.lR.exec(B)}return e+r(B.substr(t))}function h(){var e="string"==typeof M.sL;if(e&&!y[M.sL])return r(B);var t=e?l(M.sL,B,!0,R[M.sL]):f(B,M.sL.length?M.sL:void 0);return M.r>0&&(L+=t.r),e&&(R[M.sL]=t.top),g(t.language,t.value,!1,!0)}function d(){return void 0!==M.sL?h():p()}function m(e,t){var n=e.cN?g(e.cN,"",!0):"";e.rB?(x+=n,B=""):e.eB?(x+=r(t)+n,B=""):(x+=n,B=t),M=Object.create(e,{parent:{value:M}})}function v(e,t){if(B+=e,void 0===t)return x+=d(),0;var n=i(t,M);if(n)return x+=d(),m(n,t),n.rB?0:t.length;var a=o(M,t);if(a){var c=M;c.rE||c.eE||(B+=t),x+=d();do M.cN&&(x+=""),L+=M.r,M=M.parent;while(M!=a.parent);return c.eE&&( x+=r(t)),B="",a.starts&&m(a.starts,""),c.rE?0:t.length}if(s(t,M))throw new Error('Illegal lexeme "'+t+'" for mode "'+(M.cN||"")+'"');return B+=t,t.length||1}var N=E(e);if(!N)throw new Error('Unknown language: "'+e+'"');u(N);var C,M=c||N,R={},x="";for(C=M;C!=N;C=C.parent)C.cN&&(x=g(C.cN,"",!0)+x);var B="",L=0;try{for(var S,A,k=0;M.t.lastIndex=k,S=M.t.exec(t),S;)A=v(t.substr(k,S.index-k),S[0]),k=S.index+A;for(v(t.substr(k)),C=M;C.parent;C=C.parent)C.cN&&(x+="");return{r:L,value:x,language:e,top:M}}catch(I){if(-1!=I.message.indexOf("Illegal"))return{r:0,value:r(t)};throw I}}function f(e,t){t=t||w.languages||Object.keys(y);var n={r:0,value:r(e)},a=n;return t.forEach(function(r){if(E(r)){var t=l(r,e,!1);t.language=r,t.r>a.r&&(a=t),t.r>n.r&&(a=n,n=t)}}),a.language&&(n.second_best=a),n}function b(e){return w.tabReplace&&(e=e.replace(/^((<[^>]+>|\t)+)/gm,function(e,r){return r.replace(/\t/g,w.tabReplace)})),w.useBR&&(e=e.replace(/\n/g,"")),e}function g(e,r,t){var n=r?C[r ]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(n)&&a.push(n),a.join(" ").trim()}function p(e){var r=c(e);if(!a(r)){var t;w.u
[07/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/lib/lodash.min.js -- diff --git a/1.1.0/api/v2/ui/lib/lodash.min.js b/1.1.0/api/v2/ui/lib/lodash.min.js new file mode 100644 index 000..3625da8 --- /dev/null +++ b/1.1.0/api/v2/ui/lib/lodash.min.js @@ -0,0 +1,2 @@ +(function(){function n(n,t){if(n!==t){var r=null===n,e=n===x,u=n===n,o=null===t,i=t===x,f=t===t;if(n>t&&!o||!u||r&&!i&&f||e&&f)return 1;if(n=n&&9<=n&&13>=n||32==n|| 160==n||5760==n||6158==n||8192<=n&&(8202>=n||8232==n||8233==n||8239==n||8287==n||12288==n||65279==n)}function v(n,t){for(var r=-1,e=n.length,u=-1,o=[];++r=F&&wu&&hu?new Dn(t):null,a=t.length;c&&(i=Mn,f=!1,t=c);n:for(;++oi(t,c,0)&&u.push(c);return u}function lt(n,t){var r=!0;return zu(n,function(n,e,u){return r=!!t(n,e,u)}),r}function st(n,t,r,e){var u=e,o=u;return zu(n,function(n,i,f){i=+t(n,i,f),(r(i,u)||i===e&&i===o)&&(u=i,o=n)}),o}function pt(n,t){var r=[];return zu(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function ht(n,t,r,e){var u;return r(n,function(n,r,o){return t(n,r,o)?(u=e?r:n,!1):void 0}),u}function _t(n,t,r,e){e||(e=[]);for(var u=-1,o=n.length;++ut&&(t=-t>u?0:u+t),r=r===x||r>u?u:+r||0,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=De(u);++e=a)break n;o=e[o],u*="asc"===o||!0===o?1:-1;break n}u=t.b-r.b}return u})}function Ft(n,t){var r=0;return zu(n,function(n,e,u){r+=+t(n,e,u)||0}),r}function Lt(n,t){var e=- 1,u=jr(),o=n.length,i=u===r,f=i&&o>=F,c=f&&wu&&hu?new Dn((void 0)):null,a=[];c?(u=Mn,i=!1):(f=!1,c=t?[]:a);n:for(;++eu(c,s,0)&&((t||f)&&c.push(s),a.push(l))}return a}function Nt(n,t){for(var r=-1,e=t.length,u=De(e);++r>>1,i=n[o];(r?i<=t:iu?x:o,u=1);++e=F)return t.plant(e).value();for(var u=0,n=r?o[u].apply(this,n):e;++uarguments.length;return"function"==typeof e&&o===x&&Wo(r)?n(r,e,u,i):Ct(r,mr(e,o,4),u,i,t)}}function hr(n,t,r,e,u,o,i,f,c,a){function l(){for(var w=arguments.length,b=w,j=De(w);b--;)j[b]=arguments[b];if(e&&(j=qt(j,e,u)),o&&(j=Kt(j,o,i)),_||y){var b=l.placeholder,k=v(j,b),w=w-k.length;if(wt?0:t)):[]}function Vr(n,t,r){var e=n?n.length:0;return e?((r?$r(n,t,r):null==t)&&(t=1),t=e-(+t||0),St(n,0,0>t?0:t)):[]}function Zr(n){return n?n[0]:x}function Yr(n,t,e){var u=n?n.length:0;if(!u)return-1;if("number"==typeof e)e=0> e?ju(u+e,0):e;else if(e)return e=zt(n,t),er?ju(u+r,0):r||0,"string"==typeof n||!Wo(n)&&Ae(n)?r<=u&&-1t?0:+t||0,e);++r=n&&(t=x),r}}function le(n,t,r){function e(t,r){r&&au(r),c=p=h=x,t&&(_=xo(),a= n.apply(s,f),p||c||(f=s=x))}function u(){var n=t-(xo()-l);0>=n||n>t?e(h,c):p=_u(u,n)}function o(){e(g,p)}function i(){if(f=arguments,l=xo(),s=this,h=g&&(p||!y),!1===v)var r=y&&!p;else{c||y||(_=l);var e=v-(l-_),i=0>=e||e>v;i?(c&&(c=au(c)),_=l,a=n.apply(s,f)):c||(c=_u(o,e))}return i&&p?p=au(p):p||t===v||(p=_u(u,t)),r&&(i=!0,a=n.apply(s,f)),!i||p||c||(f=s=x),a}var f,c,a,l,s,p,h,_=0,v=!1,g=!0;if("function"!=typeof n)throw new Xe(T);if(t=0>t?0:+t||0,!0===r)var y=!0,g=!1;else de(r)&&(y=!!r.leading,v="maxWait"in r&&ju(+r.maxWait||0,t),g="trailing"in r?!!r.trailing:g);return i.cancel=function(){p&&au(p),c&&au(c),_=0,c=p=h=x},i}function se(n,t){if("function"!=typeof n||t&&"function"!=typeof t)throw new Xe(T);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],o=r.cache;return o.has(u)?o.get(u):(e=n.apply(this,e),r.cache=o.set(u,e),e)};return r.cache=new se.Cache,r}function pe(n,t){if("function"!=typeof n)throw new Xe(T);return t=ju(t===x?n.length-1:+t||0,0),function(){for(var r=argumen ts,e=-1,u=ju(r.length-t,0),o=De(u);++et}function _e(n){return h(n)&&Sr(n)&&eu.call(n,"callee")&&!pu.call(n,"callee")}function ve(n,t,r,e){return e=(r="function"==typeof r?Dt(r,e,3):x)?r(n,t):x,e===x?xt(n,t,r):!!e}function ge(n){return h(n)&&"string"==typeof n.message&&ou.call(n)==q}function ye(n){return de(n)&&ou.call(n)==K}function de(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function we(n){return null!=n&&(ye(n)?fu.test(ru.call(n)):h(n)&&(Gn(n)?fu:In).test(n))}function xe(n){return"number"==typeof n||h(n)&&ou.call(n)==V}function be(n){var t;if(!h(n)||ou.call(n)!=Z||Gn(n)||_e(n)||!(eu.call(n,"constructor")||(t=n.constructor,"function"!=typeof t||t instanceof t)))return!1;var r;return Nn.support.ownLast?(vt(n,function(n,t,e){return r=eu.call(e,t),!1} ),!1!==r):(vt(n,function(n,t){r=t}),r===x||eu.call(n,r))}function me(n){return de(n)&&ou.call(n)==Y}function Ae(n){return"string"==typeof n||h(n)&&ou.call(n)==G}function je(n){return h(n)&&Lr(n.length)&&!!Fn[ou.call(n)]}function ke(n,t){return nt||!n||!mu(t))return r;do t%2&&(r+=n),t=xu(t/2),n+=n;while(t);return r}function We(n,t,r){var e=n;return(n=u(n))?(r?$r(e,t,r):null==t)?n.slice(g(n),y(n)+1):(t+="",n.slice(o(n,t),i(n,t)+1)):n}function Fe(n,t,r){return r&&$r(n,t,r)&&(t=x),n=u(n),n.match(t||Un)||[]}function Le(n,t,r){return r&&$r(n,t,r)&&(t=x),h(n)?Te(n):it(n,t)}function Ne(n){return n}function Te(n){return At(ft(n,!0))}function Pe(n,t,r){if(nul
[27/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/application.wadl -- diff --git a/1.1.0/api/v2/application.wadl b/1.1.0/api/v2/application.wadl new file mode 100644 index 000..562cdeb --- /dev/null +++ b/1.1.0/api/v2/application.wadl @@ -0,0 +1,1644 @@ + + +http://wadl.dev.java.net/2009/02"; xmlns:xs="http://www.w3.org/2001/XMLSchema";> + + http://enunciate.webcohesion.com/"; enunciate:generatedBy="Enunciate-2.0"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[30/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/js/libs/modernizr-1.7.min.js -- diff --git a/1.1.0/api/js/libs/modernizr-1.7.min.js b/1.1.0/api/js/libs/modernizr-1.7.min.js new file mode 100644 index 000..6f54850 --- /dev/null +++ b/1.1.0/api/js/libs/modernizr-1.7.min.js @@ -0,0 +1,2 @@ +// Modernizr v1.7 www.modernizr.com +window.Modernizr=function(a,b,c){function G(){e.input=function(a){for(var b=0,c=a.length;bhttp://www.w3.org/2000/svg"},r={},s={},t={},u=[],v,w=function(a){var c=b.createElement("style"),d=b.createElement("div"),e;c.textContent=a+"{#modernizr{height:3px}}",h.appendChild(c),d.id="modernizr",g.appendChild(d),e=d.offsetHeight===3,c.parentNode.removeChild(c),d.parentNode.removeChild(d);return!!e},x=function(){function d(d,e){e=e||b.createElement(a[d]||"div");var f=(d="on"+d)in e;f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.remo veAttribute&&(e.setAttribute(d,""),f=C(e[d],"function"),C(e[d],c)||(e[d]=c),e.removeAttribute(d))),e=null;return f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),y=({}).hasOwnProperty,z;C(y,c)||C(y.call,c)?z=function(a,b){return b in a&&C(a.constructor.prototype[b],c)}:z=function(a,b){return y.call(a,b)},r.flexbox=function(){function c(a,b,c,d){a.style.cssText=o.join(b+":"+c+";")+(d||"")}function a(a,b,c,d){b+=":",a.style.cssText=(b+o.join(c+";"+b)).slice(0,-b.length)+(d||"")}var d=b.createElement("div"),e=b.createElement("div");a(d,"display","box","width:42px;padding:0;"),c(e,"box-flex","1","width:10px;"),d.appendChild(e),g.appendChild(d);var f=e.offsetWidth===42;d.removeChild(e),g.removeChild(d);return f},r.canvas=function(){var a=b.createElement("canvas");return a.getContext&&a.getContext("2d")},r.canvastext=function(){return e.canvas&&C(b.createElement("canvas").getContext("2d").fillText,"function")},r.webgl=functi on(){return!!a.WebGLRenderingContext},r.touch=function(){return"ontouchstart"in a||w("@media ("+o.join("touch-enabled),(")+"modernizr)")},r.geolocation=function(){return!!navigator.geolocation},r.postmessage=function(){return!!a.postMessage},r.websqldatabase=function(){var b=!!a.openDatabase;return b},r.indexedDB=function(){for(var b=-1,c=p.length;++b7)},r.history=function(){return !!(a.history&&history.pushState)},r.draganddrop=function(){return x("dragstart")&&x("drop")},r.websockets=function(){return"WebSocket"in a},r.rgba=function(){A("background-color:rgba(150,255,150,.5)");return D(k.backgroundColor,"rgba")},r.hsla=function(){A("background-color:hsla(120,40%,100%,.5)");return D(k.backgroundColor,"rgba")||D(k.backgroundColor,"hsla")},r.multiplebgs=function(){A("background:url(//:),url(//:),red url(//:)");re turn(new RegExp("(url\\s*\\(.*?){3}")).test(k.background)},r.backgroundsize=function(){return F("backgroundSize")},r.borderimage=function(){return F("borderImage")},r.borderradius=function(){return F("borderRadius","",function(a){return D(a,"orderRadius")})},r.boxshadow=function(){return F("boxShadow")},r.textshadow=function(){return b.createElement("div").style.textShadow===""},r.opacity=function(){B("opacity:.55");return/^0.55$/.test(k.opacity)},r.cssanimations=function(){return F("animationName")},r.csscolumns=function(){return F("columnCount")},r.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";A((a+o.join(b+a)+o.join(c+a)).slice(0,-a.length));return D(k.backgroundImage,"gradient")},r.cssreflections=function(){return F("boxReflect")},r.csstransforms=function(){return!!E(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])},r.csstransforms3d=f unction(){var a=!!E(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);a&&"webkitPerspective"in g.style&&(a=w("@media ("+o.join("transform-3d),(")+"modernizr)"));return a},r.csstransitions=function(){return F("transitionProperty")},r.fontface=function(){var a,c,d=h||g,e=b.createElement("style"),f=b.implementation||{hasFeature:function(){return!1}};e.type="text/css",d.insertBefore(e,d.firstChild),a=e.sheet||e.styleSheet;var i=f.hasFeature("CSS2","")?function(b){if(!a||!b)return!1;var c=!1;try{a.insertRule(b,0),c=/src/i.test(a.cssRules[0].cssText),a.deleteRule(a.cssRules.length-1)}catch(d){}return c}:function(b){if(!a||!b)return!1;a.cssText=b;return a.cssText.length!==0&&/src/i.test(a.cssText)&&a.cssText.replace(/\r+|\n+/g,"").indexOf(b.split(" ")[0])===0};c=i('@font-face { font-family: "font"; src: url(data:,); }'),d.removeChild(e);return c},r.video=function(){var a=b.createElement("video"),c=!!a.canPlayType;if(c){c=new Boolean(c),c.ogg=a.can PlayType('video/ogg; codecs="theora"');var d='video/mp4; codecs="avc1.42E01E';c.h264=a.canPlayType(d+'"')||a.canPlayType(d+', mp4a.40.2"'),c
[14/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/lang/el.js -- diff --git a/1.1.0/api/v2/ui/lang/el.js b/1.1.0/api/v2/ui/lang/el.js new file mode 100644 index 000..fcd1ffd --- /dev/null +++ b/1.1.0/api/v2/ui/lang/el.js @@ -0,0 +1,56 @@ +'use strict'; + +/* jshint quotmark: double */ +window.SwaggerTranslator.learn({ +"Warning: Deprecated":"Î ÏοειδοÏοίηÏη: ÎÏει αÏοÏÏ Ïθεί", +"Implementation Notes":"ΣημειÏÏÎµÎ¹Ï Î¥Î»Î¿ÏοίηÏηÏ", +"Response Class":"ÎÏÏκÏιÏη", +"Status":"ÎαÏάÏÏαÏη", +"Parameters":"ΠαÏάμεÏÏοι", +"Parameter":"ΠαÏάμεÏÏοÏ", +"Value":"Τιμή", +"Description":"ΠεÏιγÏαÏή", +"Parameter Type":"ΤÏÏÎ¿Ï Î Î±ÏαμÎÏÏÎ¿Ï ", +"Data Type":"ΤÏÏÎ¿Ï ÎεδομÎνÏν", +"Response Messages":"ÎηνÏμαÏα ÎÏÏκÏιÏηÏ", +"HTTP Status Code":"ÎÏδικÏÏ ÎαÏάÏÏαÏÎ·Ï HTTP", +"Reason":"ÎιÏιολογία", +"Response Model":"ÎονÏÎλο ÎÏÏκÏιÏηÏ", +"Request URL":"URL ÎιÏήμαÏοÏ", +"Response Body":"ΣÏμα ÎÏÏκÏιÏηÏ", +"Response Code":"ÎÏδικÏÏ ÎÏÏκÏιÏηÏ", +"Response Headers":"ÎÏικεÏÎ±Î»Î¯Î´ÎµÏ ÎÏÏκÏιÏηÏ", +"Hide Response":"ÎÏÏκÏÏ Ïη ÎÏÏκÏιÏηÏ", +"Headers":"ÎÏικεÏαλίδεÏ", +"Try it out!":"ÎοκιμάÏÏε Ïο!", +"Show/Hide":"ÎμÏάνιÏη/ÎÏÏκÏÏ Ïη", +"List Operations":"ÎίÏÏα ÎειÏÎ¿Ï ÏγιÏν", +"Expand Operations":"ÎνάÏÏÏ Î¾Î· ÎειÏÎ¿Ï ÏγιÏν", +"Raw":"ÎκαÏÎÏγαÏÏο", +"can't parse JSON. Raw result":"Î±Î´Ï Î½Î±Î¼Î¯Î± Î±Î½Î¬Î»Ï ÏÎ·Ï JSON. ÎκαÏÎÏγαÏÏο αÏοÏÎλεÏμα", +"Example Value":"ΠαÏάδειγμα ΤιμήÏ", +"Model Schema":"ΣÏήμα ÎονÏÎÎ»Î¿Ï ", +"Model":"ÎονÏÎλο", +"Click to set as parameter value":"ΠαÏήÏÏε για να θÎÏεÏε Ïιμή ÏαÏαμÎÏÏÎ¿Ï ", +"apply":"εÏαÏμογή", +"Username":"Îνομα ÏÏήÏη", +"Password":"ÎÏδικÏÏ ÏÏÏÏβαÏηÏ", +"Terms of service":"ÎÏοι ÏÏήÏηÏ", +"Created by":"ÎÎ·Î¼Î¹Î¿Ï Ïγήθηκε αÏÏ", +"See more at":"ÎείÏε ÏεÏιÏÏÏÏεÏα ÏÏο", +"Contact the developer":"ÎÏικοινÏνήÏÏε με Ïον ÏÏογÏαμμαÏιÏÏή", +"api version":"ÎκδοÏη api", +"Response Content Type":"ΤÏÏÎ¿Ï Î ÎµÏιεÏομÎÎ½Î¿Ï ÎÏÏκÏιÏηÏ", +"Parameter content type:":"ΤÏÏÎ¿Ï ÏεÏιεÏομÎÎ½Î¿Ï ÏαÏαμÎÏÏÎ¿Ï :", +"fetching resource":"ÏαÏαλαβή ÏÏÏÎ¿Ï ", +"fetching resource list":"ÏαÏαλαβή λίÏÏÎ±Ï ÏÏÏÏν", +"Explore":"ÎξεÏεÏνηÏη", +"Show Swagger Petstore Example Apis":"ÎμÏάνιÏη Api ÎειγμάÏÏν Petstore ÏÎ¿Ï Swagger", +"Can't read from server. It may not have the appropriate access-control-origin settings.":"ÎÎ´Ï Î½Î±Î¼Î¯Î± ανάγνÏÏÎ·Ï Î±ÏÏ Ïον ÎµÎ¾Ï ÏηÏεÏηÏή. ÎÏοÏεί να μην ÎÏει καÏÎ¬Î»Î»Î·Î»ÎµÏ ÏÏ Î¸Î¼Î¯ÏÎµÎ¹Ï Î³Î¹Î± access-control-origin.", +"Please specify the protocol for":"ΠαÏÎ±ÎºÎ±Î»Ï ÏÏοÏδιοÏίÏÏε Ïο ÏÏÏÏÏκολλο για", +"Can't read swagger JSON from":"ÎÎ´Ï Î½Î±Î¼Î¯Î± ανάγνÏÏÎ·Ï swagger JSON αÏÏ", +"Finished Loading Resource Information. Rendering Swagger UI":"ÎλοκλήÏÏÏη ΦÏÏÏÏÏÎ·Ï Î Î»Î·ÏοÏοÏικÏν Î ÏÏÎ¿Ï . ΠαÏÎ¿Ï ÏίαÏη Swagger UI", +"Unable to read api":"ÎÎ´Ï Î½Î±Î¼Î¯Î± ανάγνÏÏÎ·Ï api", +"from path":"αÏÏ Ïο μονοÏάÏι", +"server returned":"ο ÎµÎ¾Ï ÏηÏεÏηÏÎ®Ï ÎµÏÎÏÏÏεÏε" +}); http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/lang/en.js -- diff --git a/1.1.0/api/v2/ui/lang/en.js b/1.1.0/api/v2/ui/lang/en.js new file mode 100644 index 000..9183136 --- /dev/null +++ b/1.1.0/api/v2/ui/lang/en.js @@ -0,0 +1,56 @@ +'use strict'; + +/* jshint quotmark: double */ +window.SwaggerTranslator.learn({ +"Warning: Deprecated":"Warning: Deprecated", +"Implementation Notes":"Implementation Notes", +"Response Class":"Response Class", +"Status":"Status", +"Parameters":"Parameters", +"Parameter":"Parameter", +"Value":"Value", +"Description":"Description", +"Parameter Type":"Parameter Type", +"Data Type":"Data Type", +"Response Messages":"Response Messages", +"HTTP Status Code":"HTTP Status Code", +"Reason":"Reason", +"Response Model":"Response Model", +"Request URL":"Request URL", +"Response Body":"Response Body", +"Response Code":"Response Code", +"Response Headers":"Response Headers", +"Hide Response":"Hide Res
[24/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/json_AtlasRelationshipDef.html -- diff --git a/1.1.0/api/v2/json_AtlasRelationshipDef.html b/1.1.0/api/v2/json_AtlasRelationshipDef.html new file mode 100644 index 000..e47b6a0 --- /dev/null +++ b/1.1.0/api/v2/json_AtlasRelationshipDef.html @@ -0,0 +1,350 @@ + + + + + + + + + Atlas REST API: AtlasRelationshipDef + + + + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css";> + + + + + + + + + + + + + + + Toggle navigation + + + + +Atlas REST API: AtlasRelationshipDef + + + + Resources + Data Types + + + + + + + + + + Back to Top + + + + + + Home + JSON + AtlasRelationshipDef + + + AtlasRelationshipDef Data Type + + AtlasRelationshipDef is a TypeDef that defines a relationship. + +As with other typeDefs the AtlasRelationshipDef has a name. Once created the RelationshipDef has a guid. +The name and the guid are the 2 ways that the RelationshipDef is identified. + +RelationshipDefs have 2 ends, each of which specify cardinality, an EntityDef type name and name and optionally +whether the end is a container. +RelationshipDefs can have AttributeDefs - though only primitive types are allowed. +RelationshipDefs have a relationshipCategory specifying the UML type of relationship required +RelationshipDefs also have a PropogateTag - indicating which way tags could flow over the relationships. + +The way EntityDefs and RelationshipDefs are intended to be used is that EntityDefs will define AttributeDefs these AttributeDefs +will not specify an EntityDef type name as their types. + +RelationshipDefs introduce new atributes to the entity instances. For example +EntityDef A might have attributes attr1,attr2,attr3 +EntityDef B might have attributes attr4,attr5,attr6 +RelationshipDef AtoB might define 2 ends +end1: type A, name attr7 +end1: type B, name attr8 + +When an instance of EntityDef A is created, it will have attributes attr1,attr2,attr3,attr7 +When an instance of EntityDef B is created, it will have attributes attr4,attr5,attr6,attr8 + +In this way relationshipDefs can be authored separately from entityDefs and can inject relationship attributes into +the entity instances + + + + + +Properties + + + name + data type + description + + + + +relationshipCategory + +RelationshipCategory + + + + + + +propagateTags + +PropagateTags + + + + + + +endDef1 + +AtlasRelationshipEndDef + + + + + + +endDef2 + +AtlasRelationshipEndDef + + + + + + +relationshipLabel + +string + + + + + + + + Properties inherited from AtlasStructDef + + + + attributeDefs + array of AtlasAttributeDef + + + + + + Properties inherited from AtlasBaseTypeDef + + + + category + TypeCategory + + + + + guid + string + + + + + createdBy + string + + + + + updatedBy + string + + + + + createTime + number + + + + + updateTime + number + + + + + version + number + + + + + name + string + + + + + description + string + + + + + typeVersion + string + + + + + options + map of string + + + + + + + Example + + { + "relationshipCategory" : "AGGREGATION", + "propagateTags" : "ONE_TO_TWO", + "endDef1" : { +"type" : "...", +"name" : "...", +"isContainer" : true, +"cardinality" : "LIST", +"isLegacyAttribute" : true + }, + "endDef2" : { +"type" : "...", +"name" : "...", +"isContainer" : true, +"cardinality" : "SET", +"isLegacyAttribute" : true + }, + "relationshipLabel" : "...", + "attributeDefs" : [ { +"name" : "...", +"typeName" : "...", +"isOptional" : true, +"cardinality" : "SET", +"valuesMinCount" : 12345, +"valuesMaxCount" : 12345, +"isUnique" : true, +"isIndexable" : tr
[13/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/lib/handlebars-2.0.0.js -- diff --git a/1.1.0/api/v2/ui/lib/handlebars-2.0.0.js b/1.1.0/api/v2/ui/lib/handlebars-2.0.0.js new file mode 100644 index 000..53cf921 --- /dev/null +++ b/1.1.0/api/v2/ui/lib/handlebars-2.0.0.js @@ -0,0 +1,28 @@ +/*! + + handlebars v2.0.0 + +Copyright (C) 2011-2014 by Yehuda Katz + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +@license +*/ +!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.Handlebars=a.Handlebars||b()}(this,function(){var a=function(){"use strict";function a(a){this.string=a}var b;return a.prototype.toString=function(){return""+this.string},b=a}(),b=function(a){"use strict";function b(a){return i[a]}function c(a){for(var b=1;b":">",'"':""","'":"'","`":"`"},j=/[&<>"'`]/g,k=/[&<>"'`]/;g.extend=c;var l=Object.prototype.toString;g.toString=l;var m=function(a){return"function"==typeof a};m(/x/)&&(m=function(a){return"function"==typeof a&&"[object Function]"===l.c all(a)});var m;g.isFunction=m;var n=Array.isArray||function(a){return a&&"object"==typeof a?"[object Array]"===l.call(a):!1};return g.isArray=n,g.escapeExpression=d,g.isEmpty=e,g.appendContextPath=f,g}(a),c=function(){"use strict";function a(a,b){var d;b&&b.firstLine&&(d=b.firstLine,a+=" - "+d+":"+b.firstColumn);for(var e=Error.prototype.constructor.call(this,a),f=0;f0?(c.id s&&(c.ids=[c.name]),a.helpers.each(b,c)):d(this);if(c.data&&c.ids){var g=q(c.data);g.contextPath=f.appendContextPath(c.data.contextPath,c.name),c={data:g}}return e(b,c)}),a.registerHelper("each",function(a,b){if(!b)throw new g("Must pass iterator to #each");var c,d,e=b.fn,h=b.inverse,i=0,j="";if(b.data&&b.ids&&(d=f.appendContextPath(b.data.contextPath,b.ids[0])+"."),l(a)&&(a=a.call(this)),b.data&&(c=q(b.data)),a&&"object"==typeof a)if(k(a))for(var m=a.length;m>i;i++)c&&(c.index=i,c.first=0===i,c.last=i===a.length-1,d&&(c.contextPath=d+i)),j+=e(a[i],{data:c});else for(var n in a)a.hasOwnProperty(n)&&(c&&(c.key=n,c.index=i,c.first=0===i,d&&(c.contextPath=d+n)),j+=e(a[n],{data:c}),i++);return 0===i&&(j=h(this)),j}),a.registerHelper("if",function(a,b){return l(a)&&(a=a.call(this)),!b.hash.includeZero&&!a||f.isEmpty(a)?b.inverse(this):b.fn(this)}),a.registerHelper("unless",function(b,c){return a.helpers["if"].call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})}),a.registerHelper("with", function(a,b){l(a)&&(a=a.call(this));var c=b.fn;if(f.isEmpty(a))return b.inverse(this);if(b.data&&b.ids){var d=q(b.data);d.contextPath=f.appendContextPath(b.data.contextPath,b.ids[0]),b={data:d}}return c(a,b)}),a.registerHelper("log",function(b,c){var d=c.data&&null!=c.data.level?parseInt(c.data.level,10):1;a.log(d,b)}),a.registerHelper("lookup",function(a,b){return a&&a[b]})}var e={},f=a,g=b,h="2.0.0";e.VERSION=h;var i=6;e.COMPILER_REVISION=i;var j={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};e.REVISION_CHANGES=j;var k=f.isArray,l=f.isFunction,m=f.toString,n="[object Object]";e.HandlebarsEnvironment=c,c.prototype={constructor:c,logger:o,log:p,registerHelper:function(a,b){if(m.call(a)===n){if(b)throw new g("Arg not supported with multiple helpers");f.extend(this.helpers,a)}else this.helpers[a]=b},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){m.call(a)===n?f.extend(this.partials,a):thi s.partials[a]=b},unregisterPartial:function(a){delete this.partials[a]}};var o={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(a,b){if(o.level<=a){var c=o.methodMap[a];"undefined"!=typeof console&&console[c]&&console[c].call(console,b)}}};e.logger=o;var p=o.log;e.log=p;var q=function(a){var b=f.extend({},a);return b._parent=a,b};return e.createFrame=q,e}(b,c),e=function(a,b,c){"use strict"
[15/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.svg -- diff --git a/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.svg b/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.svg new file mode 100644 index 000..d9f2a21 --- /dev/null +++ b/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.svg @@ -0,0 +1,403 @@ + +http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";> +http://www.w3.org/2000/svg";> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.ttf -- diff --git a/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.ttf b/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.ttf new file mode 100644 index 000..fb8cea6 Binary files /dev/null and b/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.ttf differ http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.woff -- diff --git a/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.woff b/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.woff new file mode 100644 index 000..abf1989 Binary files /dev/null and b/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.woff differ http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.woff2 -- diff --git a/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.woff2 b/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.woff2 new file mode 100644 index 000..9f93f74 Binary files /dev/null and b/1.1.0/api/v2/ui/fonts/droid-sans-v6-latin-regular.woff2 differ http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/images/collapse.gif -- diff --git a/1.1.0/api/v2/ui/images/collapse.gif b/1.1.0/api/v2/ui/images/collapse.gif new file mode 100644 index 000..8843e8c Binary files /dev/null and b/1.1.0/api/v2/ui/images/collapse.gif differ http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/images/expand.gif -- diff --git a/1.1.0/api/v2/ui/images/expand.gif b/1.1.0/api/v2/ui/images/expand.gif new file mode 100644 index 000..477bf13 Binary files /dev/null and b/1.1.0/api/v2/ui/images/expand.gif differ http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/images/explorer_icons.png -- diff --git a/1.1.0/api/v2/ui/images/explorer_icons.png b/1.1.0/api/v2/ui/images/explorer_icons.png new file mode 100644 index 000..be43b27 Binary files /dev/null and b/1.1.0/api/v2/ui/images/explorer_icons.png differ http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/images/favicon-16x16.png -- diff --git a/1.1.0/api/v2/ui/images/favicon-16x16.png b/1.1.0/api/v2/ui/images/favicon-16x16.png new file mode 100644 index 000..0f7e13b Binary files /dev/null and b/1.1.0/api/v2/ui/images/favicon-16x16.png differ http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/images/favicon-32x32.png -- diff --git a/1.1.0/api/v2/ui/images/favicon-32x32.png b/1.1.0/api/v2/ui/images/favicon-32x32.png new file mode 100644 index 000..b0a3352 Binary files /dev/null and b/1.1.0/api/v2/ui/images/favicon-32x32.png differ http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/images/favicon.ico -- diff --git a/1.1.0/api/v2/ui/images/favicon.ico b/1.1.0/api/v2/ui/images/favicon.ico new file mode 100644 index 000..8b60bcf Binary files /dev/null and b/1.1.0/api/v2/ui/images/favicon.ico differ http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/images/logo_small.png -- diff --git a/1.1.0/api/v2/ui/images/logo_small.png b/1.1.0/api/v2/ui/images/logo_small.png new file mode 100644 index 000..ce3908e Binary files /dev/null and b/1.1.0/api/v
[10/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/lib/jquery-1.8.0.min.js -- diff --git a/1.1.0/api/v2/ui/lib/jquery-1.8.0.min.js b/1.1.0/api/v2/ui/lib/jquery-1.8.0.min.js new file mode 100644 index 000..e2e2b7f --- /dev/null +++ b/1.1.0/api/v2/ui/lib/jquery-1.8.0.min.js @@ -0,0 +1,3 @@ +!function(e,t){function n(e){var t=he[e]={};return K.each(e.split(te),function(e,n){t[n]=!0}),t}function r(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(me,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r||"false"!==r&&("null"===r?null:+r+""===r?+r:ge.test(r)?K.parseJSON(r):r)}catch(o){}K.data(e,n,r)}else r=t}return r}function i(e){var t;for(t in e)if(("data"!==t||!K.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function o(){return!1}function a(){return!0}function s(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function l(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function u(e,t,n){if(t=t||0,K.isFunction(t))return K.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return K.grep(e,function(e,r){return e===t===n});if("string"==typeof t){var r=K.grep(e,function(e){return 1===e.nodeType});if(_e.test(t))return K.filter(t,r,!n);t=K.filter(t,r)}return K.grep(e,function(e,r){return K.inArray(e,t)>=0===n} )}function c(e){var t=We.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function f(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function p(e,t){if(1===t.nodeType&&K.hasData(e)){var n,r,i,o=K._data(e),a=K._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r").appendTo(R.body),n=t.css("display");return t.remove(),"none"!==n&&""!==n||(rt=R.body.appendChild(rt||K.extend(R.createElement("iframe"),{frameBorder:0,width:0,height:0})),it&&rt.createElement||(it=(rt.contentWindow||rt.contentDocument).document,it.write( ""),it.close()),t=it.body.appendChild(it.createElement(e)),n=nt(t,"display"),R.body.removeChild(rt)),pt[e]=n,n}function N(e,t,n,r){var i;if(K.isArray(t))K.each(t,function(t,i){n||bt.test(e)?r(e,i):N(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==K.type(t))r(e,t);else for(i in t)N(e+"["+i+"]",t[i],n,r)}function C(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i,o,a=t.toLowerCase().split(te),s=0,l=a.length;if(K.isFunction(n))for(;s)[^>]*$|#([\w\-]*)$)/,ie=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,oe=/^[\],:{}\s]*$/,ae=/(?:^|:|,)(?:\s*\[)+/g,se=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,le=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,ue=/^-ms-/,ce=/-([\da-z])/gi,fe=function(e,t){return(t+"").toUpperCase()},pe=function(){R.addEventListener?(R.removeEventListener("DOMContentLoaded",pe,!1),K.ready()):"complete"===R.readyState&&(R.detachEvent("onreadystatechange",pe),K.ready())},de={};K.fn=K.prototype={constructor:K,init:function(e,n,r){var i,o,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if( "string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:re.exec(e),i&&(i[1]||!n)){if(i[1])return n=n instanceof K?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:R,e=K.parseHTML(i[1],a,!0),ie.test(i[1])&&K.isPlainObject(n)&&this.attr.call(e,n,!0),K.merge(this,e);if(o=R.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=R,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return K.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),K.makeArray(e,this))},selector:"",jquery:"1.8.0",length:0,size:function(){return this.length},toArray:function(){return Y.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=K.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.s elector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return K.each(this,e,t)},ready:function(e){return K.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Y.apply(this,arguments),"slice",Y.call(arguments).join(","))},map:function(e){return this.pushStack(K.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:U,sort:[].sort,splice:[].splice},K.fn.init.prototype=K.fn,K.extend=K.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"!=typeof s&&!K.isFunction(s)&&(s={}),u===l&&(s=this,--l);
[08/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/lib/jsoneditor.min.js -- diff --git a/1.1.0/api/v2/ui/lib/jsoneditor.min.js b/1.1.0/api/v2/ui/lib/jsoneditor.min.js new file mode 100644 index 000..21db1ab --- /dev/null +++ b/1.1.0/api/v2/ui/lib/jsoneditor.min.js @@ -0,0 +1,5 @@ +!function(){var t;!function(){var e=!1,i=/xyz/.test(function(){window.postMessage("xyz")})?/\b_super\b/:/.*/;return t=function(){},t.extend=function(t){function s(){!e&&this.init&&this.init.apply(this,arguments)}var r=this.prototype;e=!0;var n=new this;e=!1;for(var o in t)n[o]="function"==typeof t[o]&&"function"==typeof r[o]&&i.test(t[o])?function(t,e){return function(){var i=this._super;this._super=r[t];var s=e.apply(this,arguments);return this._super=i,s}}(o,t[o]):t[o];return s.prototype=n,s.prototype.constructor=s,s.extend=arguments.callee,s},t}(),function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}t.prototype=window.Event.prototype,window.CustomEvent=t}(),function(){for(var t=0,e=["ms","moz","webkit","o"],i=0;i0&&t.length-1 in t){for(i=0;i=o&&!a&&(a= !0,e())})}},s.send()}}),o||e()},expandRefs:function(t){for(t=i({},t);t.$ref;){var e=t.$ref;delete t.$ref,this.refs[e]||(e=decodeURIComponent(e)),t=this.extendSchemas(t,this.refs[e])}return t},expandSchema:function(t){var e,r=this,n=i({},t);if("object"==typeof t.type&&(Array.isArray(t.type)?s(t.type,function(e,i){"object"==typeof i&&(t.type[e]=r.expandSchema(i))}):t.type=r.expandSchema(t.type)),"object"==typeof t.disallow&&(Array.isArray(t.disallow)?s(t.disallow,function(e,i){"object"==typeof i&&(t.disallow[e]=r.expandSchema(i))}):t.disallow=r.expandSchema(t.disallow)),t.anyOf&&s(t.anyOf,function(e,i){t.anyOf[e]=r.expandSchema(i)}),t.dependencies&&s(t.dependencies,function(e,i){"object"!=typeof i||Array.isArray(i)||(t.dependencies[e]=r.expandSchema(i))}),t.not&&(t.not=this.expandSchema(t.not)),t.allOf){for(e=0;e=t.maximum?d.push({path:r,property:"maximum",message:this.translate("error_maximum_excl",[t.maximum])}):!t.exclusiveMaximum&&e>t.maximum&&d.push({path:r,property:"maximum",message:this.translate("error_maximum_incl",[t.maximum])})),t.hasOwnProperty("minimum")&&(t.exclusiveMinimum&&e< =t.minimum?d.push({path:r,property:"minimum",message:this.translate("error_minimum_excl",[t.minimum])}):!t.exclusiveMinimum&&et.maxLength&&d.push({path:r,property:"maxLength",message:this.translate("error_maxLength",[t.maxLength])}),t.minLength&&(e+"").lengtht.maxItems&&d.push({path:r,property:"maxItems",message:this.translate("error_maxItems",[t.maxItems])}),t.minItems&&e.lengtht.maxProperties&&d.push({path:r,property:"maxProperties",message:this.translate("error_maxProperties",[t.maxProperties])})}if(t.minProperties){o=0;for(a in e)e.hasOwnProperty(a)&&o++;o=0){e=this.theme.getBlockLinkHolder(),i=this.theme.getBlockLink(),i.setAttribute("target","_blank");var a=document.createElement(r);a.setAttribute("controls","controls"),this.theme.createMediaLink(e,i,a),this.link_watchers.pus h(function(e){var s=n(e);i.setAttribute("href",s),i.textContent=t.rel||s,a.setAttribute("src",s)})}else e=this.theme.getBlockLink(),e.setAttribute("target","_blank"),e.textContent=t.rel,this.link_watchers.push(function(i){var s=n(i);e.setAttribute("href",s),e.textContent=t.rel||s});return e},refreshWatchedFieldValues:function(){if(this.watched_values){var t={},e=!1,i=this;if(this.watched){var s,r;for(var n in this.watched)this.watched.hasOwnProperty(n)&&(r=i.jsoneditor.getEditor(this.watched[n]),s=r?r.getValue():null,i.watched_values[n]!==s&&(e=!0),t[n]=s)}return t.self=this.getValue(),this.watched_values.self!==t.self&&(e=!0),this.watched_values=t,e}},getWatchedFieldValues:function(){return this.watched_values},updateHeaderText:function(){if(this.header)if(this.header.children.length){for(var t=0;t-1:!!this.jsoneditor.options.requir ed_by_default},getDisplayText:function(t){var e=[],i={};s(t,function(t,e){e.title&&(i[e.title]=i[e.title]||0,i[e.title]++),e.description&&(i[e.description]=i[e.description]||0,i[e.description]++),e.format&&(i[e.format]=i[e.format]||0,i[e.format]++),e.type&&(i[e.type]=i[e.type]||0,i[e.type]++)}),s(t,function(t,s){var r;r="string"==typeof s?s:s.title&&i[s.title]<=1?s.title:s.format&&i[s.format]<=1?s.format:s.type&&i[s.type]<=1?s.type:s.description&&i[s.description]<=1?s.descripton:s.title?s.title:s.format?s.format:s.type?s.type:s.description?s.description:JSON.stringify(s).length<50?JSON.stringify(s):"type",e.push(r)});var r={};return s(e,function(t,s){r[s]=r[s]||0,r[s]++,i[s]>1&&(e[t]=s+" "+r[s])}),e},getOption:function(t){try{throw"getOption is deprecated"}catch(e){window.console.error(e)}return this.options[t]},showValidationErrors:function(t){}}),n.defaults.editors["null"]=n.AbstractEditor.extend({getValu
[06/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/lib/sanitize-html.min.js -- diff --git a/1.1.0/api/v2/ui/lib/sanitize-html.min.js b/1.1.0/api/v2/ui/lib/sanitize-html.min.js new file mode 100644 index 000..ade2508 --- /dev/null +++ b/1.1.0/api/v2/ui/lib/sanitize-html.min.js @@ -0,0 +1,4 @@ +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.sanitizeHtml=t()}}(function(){return function t(e,r,n){function i(o,a){if(!r[o]){if(!e[o]){var c="function"==typeof require&&require;if(!a&&c)return c(o,!0);if(s)return s(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[o]={exports:{}};e[o][0].call(h.exports,function(t){var r=e[o][1][t];return i(r?r:t)},h,h.exports,t,e,r,n)}return r[o].exports}for(var s="function"==typeof require&&require,o=0;o/g,">").replace(/\"/g,""")}function f(t,r){r=r.replace(/[\x00-\x20]+/g,""),r=r.replace(/<\!\-\-.*?\-\-\>/g,"");var n=r.match(/^([a-zA-Z]+)\:/);if(!n)return!1;var s=n[1].toLowerCase();return i(e.allowedSchemesByTag,t)?e.allowedSchemesByTag[t].indexOf(s)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(s)===-1}function p(t,e){return e?(t=t.split(/\s+/),t.filter(function(t){return e.indexOf(t)!==-1}).join(" ")):t}var d="";e?(e=a(s.defaults,e),e.parser?e.parser=a(u,e.parser):e.parser=u):(e=s.defaults,e.parser=u);var g,_,m=e.nonTextTags||["script","style","textarea"];e.allowedAttributes&&(g={},_={},n(e.allowedAttributes,function(t,e){g[e]=[];var r=[];t.forEach(function(t){t.indexOf("*")>=0?r.push(c(t).replace(/\\\*/g,".*")):g[e].push(t)}),_[e]=new RegExp("^("+r.join("|")+")$")}));var b={};n(e.allowe dClasses,function(t,e){g&&(i(g,e)||(g[e]=[]),g[e].push("class")),b[e]=t});var y,v={};n(e.transformTags,function(t,e){var r;"function"==typeof t?r=t:"string"==typeof t&&(r=s.simpleTransform(t)),"*"===e?y=r:v[e]=r});var w=0,x=[],S={},E={},T=!1,A=0,k=new o.Parser({onopentag:function(t,r){if(T)return void A++;var s=new h(t,r);x.push(s);var o,a=!1,c=!!s.text;i(v,t)&&(o=v[t](t,r),s.attribs=r=o.attribs,void 0!==o.text&&(s.innerText=o.text),t!==o.tagName&&(s.name=t=o.tagName,E[w]=o.tagName)),y&&(o=y(t,r),s.attribs=r=o.attribs,t!==o.tagName&&(s.name=t=o.tagName,E[w]=o.tagName)),e.allowedTags&&e.allowedTags.indexOf(t)===-1&&(a=!0,m.indexOf(t)!==-1&&(T=!0,A=1),S[w]=!0),w++,a||(d+="<"+t,(!g||i(g,t)||g["*"])&&n(r,function(e,r){if(!g||i(g,t)&&g[t].indexOf(r)!==-1||g["*"]&&g["*"].indexOf(r)!==-1||i(_,t)&&_[t].test(r)||_["*"]&&_["*"].test(r)){if(("href"===r||"src"===r)&&f(t,e))return void delete s.attribs[r];if("class"===r&&(e=p(e,b[t]),!e.length))return void delete s.attribs[r];d+=" "+r,e.length&& (d+='="'+l(e)+'"')}else delete s.attribs[r]}),e.selfClosing.indexOf(t)!==-1?d+=" />":(d+=">",!s.innerText||c||e.textFilter||(d+=s.innerText)))},ontext:function(t){if(!T){var r,n=x[x.length-1];if(n&&(r=n.tag,t=void 0!==n.innerText?n.innerText:t),"script"===r||"style"===r)d+=t;else{var i=l(t);d+=e.textFilter?e.textFilter(i):i}if(x.length){var s=x[x.length-1];s.text+=t}}},onclosetag:function(t){if(T){if(A--,A)return;T=!1}var r=x.pop();if(r){if(T=!1,w--,S[w])return delete S[w],void r.updateParentNodeText();if(E[w]&&(t=E[w],delete E[w]),e.exclusiveFilter&&e.exclusiveFilter(r))return void(d=d.substr(0,r.tagPosition));r.updateParentNodeText(),e.selfClosing.indexOf(t)===-1&&(d+="")}}},e.parser);return k.write(t),k.end(),d}var o=t("htmlparser2"),a=t("xtend"),c=t("regexp-quote");e.exports=s;var u={decodeEntities:!0};s.defaults={allowedTags:["h3","h4","h5","h6","blockquote","p","a","ul","ol","nl","li","b","i","strong","em","strike","code","hr","br","div","table","thead","caption","tbod y","tr","th","td","pre"],allowedAttributes:{a:["href","name","target"],img:["src"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{}},s.simpleTransform=function(t,e,r){return r=void 0===r||r,e=e||{},function(n,i){var s;if(r)for(s in e)i[s]=e[s];else i=e;return{tagName:t,attribs:i,{htmlparser2:36,"regexp-quote":54,xtend:58}],2:[function(t,e,r){"use strict";function n(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e0)throw new Error("Invalid string. Length must be a multiple of 4");s="="===t[a-2]?2:"="===t[a-1]?1:0,o=new h(3*a/4-s),n=s>0?a-4:a;var c=0;for(e=0,r=0;e>16&255,o[c++]=i>>8&255,o[c+ +]=255&i;return 2===s?(i=u[t.charCodeAt(e)]<<2|u[t.charCodeAt(e+1)]>>4,o[c++]=255&i):1===s&&(i=u[t.charCodeAt(e)]<<10|u[t.charCodeAt(e+1)]<<4|u[t.charCodeAt(e+2)]>>2,o[c++]=i>>8&255,o[c++]=255&i),o}function s(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function o(t,e,r){for(var n,i=[]
[33/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
ATLAS-2868: Updated api documentation for 1.1.0 release Project: http://git-wip-us.apache.org/repos/asf/atlas-website/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas-website/commit/ab60d06f Tree: http://git-wip-us.apache.org/repos/asf/atlas-website/tree/ab60d06f Diff: http://git-wip-us.apache.org/repos/asf/atlas-website/diff/ab60d06f Branch: refs/heads/asf-site Commit: ab60d06fb680860a10c30ba7110508e031fefe12 Parents: 9645620 Author: nixonrodrigues Authored: Tue Sep 18 20:52:38 2018 +0530 Committer: nixonrodrigues Committed: Tue Sep 18 20:52:38 2018 +0530 -- 1.1.0/api/apple-touch-icon.png | Bin 0 -> 640 bytes 1.1.0/api/application.wadl | 756 + 1.1.0/api/atlas-webapp-php.zip | Bin 0 -> 2066 bytes 1.1.0/api/atlas-webapp.rb | 246 + 1.1.0/api/crossdomain.xml |25 + 1.1.0/api/css/home.gif | Bin 0 -> 128 bytes 1.1.0/api/css/prettify.css | 1 + 1.1.0/api/css/style.css | 759 + 1.1.0/api/downloads.html| 163 + 1.1.0/api/el_ns0_errorBean.html | 132 + 1.1.0/api/el_ns0_results.html | 131 + 1.1.0/api/favicon.ico | Bin 0 -> 1150 bytes 1.1.0/api/index.html| 157 + 1.1.0/api/js/libs/dd_belatedpng.js |13 + 1.1.0/api/js/libs/jquery-1.5.1.min.js |16 + 1.1.0/api/js/libs/modernizr-1.7.min.js | 2 + 1.1.0/api/js/libs/prettify/lang-apollo.js | 2 + 1.1.0/api/js/libs/prettify/lang-clj.js |18 + 1.1.0/api/js/libs/prettify/lang-css.js | 2 + 1.1.0/api/js/libs/prettify/lang-go.js | 1 + 1.1.0/api/js/libs/prettify/lang-hs.js | 2 + 1.1.0/api/js/libs/prettify/lang-lisp.js | 3 + 1.1.0/api/js/libs/prettify/lang-lua.js | 2 + 1.1.0/api/js/libs/prettify/lang-ml.js | 2 + 1.1.0/api/js/libs/prettify/lang-n.js| 4 + 1.1.0/api/js/libs/prettify/lang-proto.js| 1 + 1.1.0/api/js/libs/prettify/lang-scala.js| 2 + 1.1.0/api/js/libs/prettify/lang-sql.js | 2 + 1.1.0/api/js/libs/prettify/lang-tex.js | 1 + 1.1.0/api/js/libs/prettify/lang-vb.js | 2 + 1.1.0/api/js/libs/prettify/lang-vhdl.js | 3 + 1.1.0/api/js/libs/prettify/lang-wiki.js | 2 + 1.1.0/api/js/libs/prettify/lang-xq.js | 3 + 1.1.0/api/js/libs/prettify/lang-yaml.js | 2 + 1.1.0/api/js/libs/prettify/prettify.js |28 + 1.1.0/api/js/libs/xbreadcrumbs.js |93 + 1.1.0/api/model.html| 140 + 1.1.0/api/ns0.html | 131 + 1.1.0/api/ns0.xsd |25 + 1.1.0/api/ns0_errorBean.html| 189 + 1.1.0/api/ns0_results.html | 173 + 1.1.0/api/resource_AdminResource.html | 199 + 1.1.0/api/resource_DataSetLineageResource.html | 234 + 1.1.0/api/resource_EntityResource.html | 685 + 1.1.0/api/resource_EntityService.html | 376 + 1.1.0/api/resource_LineageResource.html | 234 + .../api/resource_MetadataDiscoveryResource.html | 324 + 1.1.0/api/resource_TaxonomyService.html | 758 + 1.1.0/api/resource_TypesResource.html | 267 + 1.1.0/api/rest.html | 120 + 1.1.0/api/robots.txt| 5 + 1.1.0/api/v2/application.wadl | 1644 ++ 1.1.0/api/v2/css/enunciate.css | 122 + 1.1.0/api/v2/css/style.css | 115 + 1.1.0/api/v2/data.html | 204 + 1.1.0/api/v2/index.html | 396 + 1.1.0/api/v2/json_AtlasAttributeDef.html| 232 + 1.1.0/api/v2/json_AtlasBaseTypeDef.html | 239 + 1.1.0/api/v2/json_AtlasClassification.html | 180 + 1.1.0/api/v2/json_AtlasClassificationDef.html | 273 + 1.1.0/api/v2/json_AtlasClassifications.html | 167 + 1.1.0/api/v2/json_AtlasConstraintDef.html | 143 + 1.1.0/api/v2/json_AtlasEntitiesWithExtInfo.html | 265 + 1.1.0/api/v2/json_AtlasEntity.html | 247 + 1.1.0/api/v2/json_AtlasEntityDef.html | 273 + 1.1.0/api/v2/json_AtlasEntityExtInfo.html | 195 + 1.1.0/api/v2/json_AtlasEntityHeader.html| 182 + 1.1.0/api/v2/json_AtlasEntityWithExtInfo.html | 235 + 1.1.0/api/v2/json_AtlasEnumDef.html | 233 + 1.1.0/api/v2/json_AtlasEnumElementDef.html | 150 + 1.1.0/api/v2/json_AtlasFullTextResult.html | 150 + 1.1.0/api/v2/json_AtlasLineageInfo.html | 199 + 1.1.0/api/v2/json_AtlasObjectId.html
[21/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/resource_EntityREST.html -- diff --git a/1.1.0/api/v2/resource_EntityREST.html b/1.1.0/api/v2/resource_EntityREST.html new file mode 100644 index 000..68ab99c --- /dev/null +++ b/1.1.0/api/v2/resource_EntityREST.html @@ -0,0 +1,1639 @@ + + + + + + + + + Atlas REST API: EntityREST + + + + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css";> + + + + + + + + + + + + + + + Toggle navigation + + + + +Atlas REST API: EntityREST + + + + Resources + Data Types + + + + + + + + + + POST /v2/entity + DELETE /v2/entity/bulk + GET /v2/entity/bulk + POST /v2/entity/bulk + POST /v2/entity/bulk/classification + DELETE /v2/entity/guid/{guid} + GET /v2/entity/guid/{guid} + PUT /v2/entity/guid/{guid} + GET /v2/entity/{guid}/audit + GET /v2/entity/guid/{guid}/classifications + POST /v2/entity/guid/{guid}/classifications + PUT /v2/entity/guid/{guid}/classifications + DELETE /v2/entity/uniqueAttribute/type/{typeName} + GET /v2/entity/uniqueAttribute/type/{typeName} + PUT /v2/entity/uniqueAttribute/type/{typeName} + DELETE /v2/entity/guid/{guid}/classification/{classificationName} + GET /v2/entity/guid/{guid}/classification/{classificationName} + POST /v2/entity/uniqueAttribute/type/{typeName}/classifications + PUT /v2/entity/uniqueAttribute/type/{typeName}/classifications + DELETE /v2/entity/uniqueAttribute/type/{typeName}/classification/{classificationName} + + Back to Top + + + + + + Home + Resources + EntityREST + + + EntityREST Resource + + REST for a single entity + + +POST /v2/entity + +Create new entity or update existing entity in Atlas. +Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName + + + Request Body + + +media type +data type + + + + +application/json;charset=UTF-8 +(custom) + + + + + + + Response Body + + +media type +data type +description + + + + +application/json;charset=UTF-8 +(custom) + +EntityMutationResponse + + + +Example + + + + + Request + +POST /v2/entity +Content-Type: application/json;charset=UTF-8 +Accept: application/json;charset=UTF-8 + + +... + + + + + Response + +HTTP/1.1 201 Created +Content-Type: application/json;charset=UTF-8 + + +... + + + + + + + + +DELETE /v2/entity/bulk + +Bulk API to delete list of entities identified by its GUIDs + + + Request Parameters + + +name +type +description +multivalued + + + + +guid +query + +yes + + + + + + Response Body + + +media type +data type +description + + + + +application/json;charset=UTF-8 +(custom) + + + + + +Example + + + + + Request + +DELETE /v2/entity/bulk +Accept: application/json;charset=UTF-8 + + + + + Response + +HTTP/1.1 204 No Content +Content-Type: application/json;charset=UTF-8 + + +... + + + + + + + + +GET /v2/entity/bulk + +Bulk API to retrieve list of entities identified by its GUIDs. + + + Request Parameters + + +name +type +description +multivalued + + + + +guid +query + +yes + + + + + + Response Body +
[04/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/ui/swagger-ui.js -- diff --git a/1.1.0/api/v2/ui/swagger-ui.js b/1.1.0/api/v2/ui/swagger-ui.js new file mode 100644 index 000..5219d03 --- /dev/null +++ b/1.1.0/api/v2/ui/swagger-ui.js @@ -0,0 +1,25344 @@ +/** + * swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API + * @version v2.2.10 + * @link http://swagger.io + * @license Apache-2.0 + */ +(function(){/* jshint ignore:start */ + {(function() { + var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; +templates['apikey_auth'] = template({"1":function(container,depth0,helpers,partials,data) { +var stack1; + + return "" ++ ((stack1 = (helpers.sanitize || (depth0 && depth0.sanitize) || helpers.helperMissing).call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.value : depth0),{"name":"sanitize","hash":{},"data":data})) != null ? stack1 : "") ++ "\n"; +},"3":function(container,depth0,helpers,partials,data) { +return "\n"; +},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { +var stack1, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing; + + return "\nApi key authorization\n" ++ ((stack1 = (helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.description : depth0),{"name":"sanitize","hash":{},"data":data})) != null ? stack1 : "") ++ "\n\n\n name:\n" ++ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.name : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "") ++ "\n\n\n in:\n" ++ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0["in"] : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "") ++ "\n\n\n value:\n" ++ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isLogout : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "") ++ "\n\n\n"; +},"useData":true}); +templates['auth_button'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { +return "Authorize\n"; +},"useData":true}); +templates['auth_button_operation'] = template({"1":function(container,depth0,helpers,partials,data) { +return "authorize__btn_operation_login\n"; +},"3":function(container,depth0,helpers,partials,data) { +return "authorize__btn_operation_logout\n"; +},"5":function(container,depth0,helpers,partials,data) { +var stack1; + + return "\n" ++ ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.scopes : depth0),{"name":"each","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") ++ "\n"; +},"6":function(container,depth0,helpers,partials,data) { +var stack1, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing; + + return "" ++ ((stack1 = (helpers.escape || (depth0 && depth0.escape) || alias2).call(alias1,(depth0 != null ? depth0.scope : depth0),{"name":"escape","hash":{},"data":data})) != null ? stack1 : "") ++ "\n"; +},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { +var stack1, alias1=depth0 != null ? depth0 : {}; + + return "\n" ++ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.scopes : depth0),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") ++ "\n"; +},"useData":true}); +templates['auth_view'] = template({"1":function(container,depth0,helpers,partials,data) { +return "Authorize\n"; +},"3":function(container,depth0,helpers,partials,data) { +return "Logout\n"; +},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { +var stack1, alias1=depth0 != null ? depth0 : {}; + + return "\n\n\n\n" ++ ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.isLogout : depth0),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") ++ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.isAuthorized : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") ++ "\n\n\n"; +},"useData":true}); +templates['basic_
[18/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/resources.html -- diff --git a/1.1.0/api/v2/resources.html b/1.1.0/api/v2/resources.html new file mode 100644 index 000..34042ba --- /dev/null +++ b/1.1.0/api/v2/resources.html @@ -0,0 +1,280 @@ + + + + + + + + + Atlas REST API: Resources + + + + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css";> + + + + + + + + + + + + + + + Toggle navigation + + + + +Atlas REST API: Resources + + + + Resources + Data Types + + + + + + + + + + Back to Top + + + + + + Home + Resources + + + Resources + + +There is a WADL document available that describes the resources API. + + +You may also enjoy the interactive interface provided for this API by http://swagger.io";>Swagger. + + +Try it out! + + + + + name + path + methods + description + + + + +DiscoveryREST + +/v2/search/attribute + /v2/search/basic + /v2/search/dsl + /v2/search/fulltext + /v2/search/relationship + /v2/search/saved + /v2/search/saved/{guid} + /v2/search/saved/{name} + /v2/search/saved/execute/{name} + /v2/search/saved/execute/guid/{guid} + +GET + GET POST + GET + GET + GET + GET POST PUT + DELETE + GET + GET + GET + +REST interface for data discovery using dsl or full text search + + + +EntityREST + +/v2/entity + /v2/entity/bulk + /v2/entity/bulk/classification + /v2/entity/guid/{guid} + /v2/entity/{guid}/audit + /v2/entity/guid/{guid}/classifications + /v2/entity/uniqueAttribute/type/{typeName} + /v2/entity/guid/{guid}/classification/{classificationName} + /v2/entity/uniqueAttribute/type/{typeName}/classifications + /v2/entity/uniqueAttribute/type/{typeName}/classification/{classificationName} + +POST + DELETE GET POST + POST + DELETE GET PUT + GET + GET POST PUT + DELETE GET PUT + DELETE GET + POST PUT + DELETE + +REST for a single entity + + + +GlossaryREST + +/v2/glossary + /v2/glossary/categories + /v2/glossary/category + /v2/glossary/term + /v2/glossary/terms + /v2/glossary/{glossaryGuid} + /v2/glossary/category/{categoryGuid} + /v2/glossary/term/{termGuid} + /v2/glossary/{glossaryGuid}/categories + /v2/glossary/{glossaryGuid}/detailed + /v2/glossary/{glossaryGuid}/partial + /v2/glossary/{glossaryGuid}/terms + /v2/glossary/category/{categoryGuid}/partial + /v2/glossary/category/{categoryGuid}/related + /v2/glossary/category/{categoryGuid}/terms + /v2/glossary/term/{termGuid}/partial + /v2/glossary/terms/{termGuid}/assignedEntities + /v2/glossary/terms/{termGuid}/related + /v2/glossary/{glossaryGuid}/categories/headers + /v2/glossary/{glossaryGuid}/terms/headers + +GET POST + POST + POST + POST + POST + DELETE GET PUT + DELETE GET PUT + DELETE GET PUT + GET + GET + PUT + GET + PUT + GET + GET + PUT + DELETE GET POST + GET + GET + GET + + + + + +LineageREST + +/v2/lineage/{guid} + +GET + +REST interface for an entity's lineage information + + + +RelationshipREST + +/v2/relationship + /v2/relationship/guid/{guid} + +POST PUT + DELETE GET + +REST interface for entity relationships. + + + +TypesREST + +/v2/types/typedefs + /v2/types/typedefs/headers + /v2/types/classificationdef/guid/{guid} + /v2/types/classificationdef/name/{name} + /v2/types/entitydef/guid/{guid} + /v2/types/entitydef/name/{name} + /v2/types/enumdef/guid/{guid} + /v2/types/enumdef/name/{name} + /v2/types/relationshipdef/guid/{guid} + /v2/types/relationshipdef/name/{name} + /v2/types/structdef/guid/{guid} + /v2/types/structdef/name/{name} + /v2/types/typedef/guid/{guid} + /v2/types/typedef/name/{name} + +DELETE GET POST PUT + GET + GET + GET + GET + GET + GET + GET + GET + GET + GET + GET + GET + GET + +REST interface for CRUD operations on type definitions + + + + + + + +Generated by http://enunciate.webcohesion.com";>Enunciate. + + + + + + + + + + https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js";> + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js";> + + + https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"; type="text/javascript"> + +$(function() { + $(".clickable-row").click(function() { +window.document.location = $(this).data("href"); +
[01/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
Repository: atlas-website Updated Branches: refs/heads/asf-site 9645620a4 -> ab60d06fb http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/xml_ns0_PList.html -- diff --git a/1.1.0/api/v2/xml_ns0_PList.html b/1.1.0/api/v2/xml_ns0_PList.html new file mode 100644 index 000..4d0f074 --- /dev/null +++ b/1.1.0/api/v2/xml_ns0_PList.html @@ -0,0 +1,242 @@ + + + + + + + + + Atlas REST API: PList + + + + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css";> + + + + + + + + + + + + + + + Toggle navigation + + + + +Atlas REST API: PList + + + + Resources + Data Types + + + + + + + + + + Back to Top + + + + + + Home + XML + PList + + + PList Data Type + + Paginated-list, for returning search results. + + +Namespace +(Default) +Schema +ns0.xsd + + + +Properties + + + name + data type + type + namespace + min/max occurs + description + + + + +list + +list of anyType + + +element + + + + + +0/unbounded + + + + + + +pageSize + +int + + +element + + + + + +1/1 + + + + + + +sortBy + +string + + +element + + + + + +0/1 + + + + + + +sortType + +sortType + + +element + + + + + +0/1 + + + + + + +startIndex + +long + + +element + + + + + +1/1 + + + + + + +totalCount + +long + + +element + + + + + +1/1 + + + + + + + + + Example + ++ + + + + +Generated by http://enunciate.webcohesion.com";>Enunciate. + + + + + + + + + + https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js";> + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js";> + + + https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"; type="text/javascript"> + +$(function() { + $(".clickable-row").click(function() { +window.document.location = $(this).data("href"); + }); + + $('[data-toggle="tooltip"]').tooltip() +}); + + + + http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/xml_ns0_atlasClassification.html -- diff --git a/1.1.0/api/v2/xml_ns0_atlasClassification.html b/1.1.0/api/v2/xml_ns0_atlasClassification.html new file mode 100644 index 000..85b8887 --- /dev/null +++ b/1.1.0/api/v2/xml_ns0_atlasClassification.html @@ -0,0 +1,220 @@ + + + + + + + + + Atlas REST API: atlasClassification + + + + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css";> + + + + + + + + + + + + + + + Toggle navigation + + + + +Atlas REST API: atlasClassification + + + + Resources + Data Types + + + + + + + + + + Back to Top + + + + + + Home + XML + atlasClassification + + + atlasClassification Data Type + + An instance of a classification; it doesn't have an identity, this object exists only when associated with an entity. + + +Namespace +(Default) +Schema +ns0.xsd + + + +Properties + + + name + data type + type + namespace + min/max occurs + description + + + + +entityGuid + +string + + +element + + + + + +0/1 + + + + + + +propagate + +boolean + + +element + + + + + +0/1 + + + + + + +validityPeriods + +list of timeBoundary + + +...
+... +... +... +... +... +
[25/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/json_AtlasEntityDef.html -- diff --git a/1.1.0/api/v2/json_AtlasEntityDef.html b/1.1.0/api/v2/json_AtlasEntityDef.html new file mode 100644 index 000..98ddd09 --- /dev/null +++ b/1.1.0/api/v2/json_AtlasEntityDef.html @@ -0,0 +1,273 @@ + + + + + + + + + Atlas REST API: AtlasEntityDef + + + + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css";> + + + + + + + + + + + + + + + Toggle navigation + + + + +Atlas REST API: AtlasEntityDef + + + + Resources + Data Types + + + + + + + + + + Back to Top + + + + + + Home + JSON + AtlasEntityDef + + + AtlasEntityDef Data Type + + class that captures details of a entity-type. + + + + + +Properties + + + name + data type + description + + + + +superTypes + +array of string + + + + + + + + Properties inherited from AtlasStructDef + + + + attributeDefs + array of AtlasAttributeDef + + + + + + Properties inherited from AtlasBaseTypeDef + + + + category + TypeCategory + + + + + guid + string + + + + + createdBy + string + + + + + updatedBy + string + + + + + createTime + number + + + + + updateTime + number + + + + + version + number + + + + + name + string + + + + + description + string + + + + + typeVersion + string + + + + + options + map of string + + + + + + + Example + + { + "superTypes" : [ "...", "..." ], + "attributeDefs" : [ { +"name" : "...", +"typeName" : "...", +"isOptional" : true, +"cardinality" : "SET", +"valuesMinCount" : 12345, +"valuesMaxCount" : 12345, +"isUnique" : true, +"isIndexable" : true, +"defaultValue" : "...", +"constraints" : [ { + "type" : "...", + "params" : { +"property1" : { }, +"property2" : { } + } +}, { + "type" : "...", + "params" : { +"property1" : { }, +"property2" : { } + } +} ] + }, { +"name" : "...", +"typeName" : "...", +"isOptional" : true, +"cardinality" : "SET", +"valuesMinCount" : 12345, +"valuesMaxCount" : 12345, +"isUnique" : true, +"isIndexable" : true, +"defaultValue" : "...", +"constraints" : [ { + "type" : "...", + "params" : { +"property1" : { }, +"property2" : { } + } +}, { + "type" : "...", + "params" : { +"property1" : { }, +"property2" : { } + } +} ] + } ], + "category" : "ARRAY", + "guid" : "...", + "createdBy" : "...", + "updatedBy" : "...", + "createTime" : 12345, + "updateTime" : 12345, + "version" : 12345, + "name" : "...", + "description" : "...", + "typeVersion" : "...", + "options" : { +"property1" : "...", +"property2" : "..." + } +} + + + +Generated by http://enunciate.webcohesion.com";>Enunciate. + + + + + + + + + + https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js";> + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js";> + + + https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"; type="text/javascript"> + +$(function() { + $(".clickable-row").click(function() { +window.document.location = $(this).data("href"); + }); + + $('[data-toggle="tooltip"]').tooltip() +}); + + + + http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/json_AtlasEntityExtInfo.html -- diff --git a/1.1.0/api/v2/json_AtlasEntityExtInfo.html b/1.1.0/api/v2/json_AtlasEntityExtInfo.html new file mode 100644 index 000..218f53a --- /dev/null +++ b/1.1.0/api/v2/json_AtlasEntityExtInfo.html @@ -0,0 +1,195 @@ + + + + + + + + + Atlas REST API: AtlasEntityExtInfo + + + + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4
[31/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/js/libs/jquery-1.5.1.min.js -- diff --git a/1.1.0/api/js/libs/jquery-1.5.1.min.js b/1.1.0/api/js/libs/jquery-1.5.1.min.js new file mode 100644 index 000..14fd647 --- /dev/null +++ b/1.1.0/api/js/libs/jquery-1.5.1.min.js @@ -0,0 +1,16 @@ +/*! + * jQuery JavaScript Library v1.5.1 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Wed Feb 23 13:55:29 2011 -0500 + */ +(function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;ic)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a ,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a) :this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selecto r+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);r
[19/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/resource_LineageREST.html -- diff --git a/1.1.0/api/v2/resource_LineageREST.html b/1.1.0/api/v2/resource_LineageREST.html new file mode 100644 index 000..2f46369 --- /dev/null +++ b/1.1.0/api/v2/resource_LineageREST.html @@ -0,0 +1,211 @@ + + + + + + + + + Atlas REST API: LineageREST + + + + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css";> + + + + + + + + + + + + + + + Toggle navigation + + + + +Atlas REST API: LineageREST + + + + Resources + Data Types + + + + + + + + + + GET /v2/lineage/{guid} + + Back to Top + + + + + + Home + Resources + LineageREST + + + LineageREST Resource + + REST interface for an entity's lineage information + + +GET /v2/lineage/{guid} + +Returns lineage info about entity. + + + Request Parameters + + +name +type +description +default +constraints + + + + +guid +path +- unique entity id + + + + +depth +query +- number of hops for lineage +3 +int + + +direction +query +- input, output or both +BOTH +"BOTH" or "INPUT" or "OUTPUT" + + + + + + Response Codes + + +code +condition + + + + +200 +If Lineage exists for the given entity + + +400 +Bad query parameters + + +404 +If no lineage is found for the given entity + + + + + + Response Body + + +media type +data type +description + + + + +application/json;charset=UTF-8 +(custom) + +AtlasLineageInfo + + + +Example + + + + + Request + +GET /v2/lineage/{guid} +Accept: application/json;charset=UTF-8 + + + + + Response + +HTTP/1.1 200 OK +Content-Type: application/json;charset=UTF-8 + + +... + + + + + + + + + +Generated by http://enunciate.webcohesion.com";>Enunciate. + + + + + + + + + + https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js";> + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js";> + + + https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"; type="text/javascript"> + +$(function() { + $(".clickable-row").click(function() { +window.document.location = $(this).data("href"); + }); + + $('[data-toggle="tooltip"]').tooltip() +}); + + + + http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/v2/resource_RelationshipREST.html -- diff --git a/1.1.0/api/v2/resource_RelationshipREST.html b/1.1.0/api/v2/resource_RelationshipREST.html new file mode 100644 index 000..28af161 --- /dev/null +++ b/1.1.0/api/v2/resource_RelationshipREST.html @@ -0,0 +1,369 @@ + + + + + + + + + Atlas REST API: RelationshipREST + + + + + + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css";> + + + + + + + + + + + + + + + Toggle navigation + + + + +Atlas REST API: RelationshipREST + + + + Resources + Data Types + + + + + + + + + + POST /v2/relationship + PUT /v2/relationship + DELETE /v2/relationship/guid/{guid} + GET /v2/relationship/guid/{guid} + + Back to Top + + + + + + Home + Resources + RelationshipREST + + + RelationshipREST Resource + + REST interface for entity relationships. + + +POST /v2/relationship + +Create a new relationship between entities. + +
[29/33] atlas-website git commit: ATLAS-2868: Updated api documentation for 1.1.0 release
http://git-wip-us.apache.org/repos/asf/atlas-website/blob/ab60d06f/1.1.0/api/ns0_errorBean.html -- diff --git a/1.1.0/api/ns0_errorBean.html b/1.1.0/api/ns0_errorBean.html new file mode 100644 index 000..feb179a --- /dev/null +++ b/1.1.0/api/ns0_errorBean.html @@ -0,0 +1,189 @@ + + + + + + + + + + + + + errorBean + + + + + + + + + + + + + + + + + + +errorBean + + +REST +Data Model +Files and Libraries + + + + + + Home > + + + Data Model > + +Data Model +REST +Files and Libraries + + + + ns0 > + +ns0 + + + + errorBean + +errorBean +results + + + + + + + + errorBean + + + Namespace: + (default namespace) + + + XML Schema: + ns0.xsd + + + + XML + Elements + + + name (type) + min/maxoccurs + description + + + +status (int) + + 1/1 + + + + + +message (string) + + 0/1 + + + + + +stackTrace (string) + + 0/1 + + + + + + JSON + + + property + type + description + + + status + + status (int) + + + + + + message + + message (string) + + + + + + stackTrace + + stackTrace (string) + + + + + + + + + + +Generated by http://enunciate.codehaus.org";>Enunciate. + + + + + + + + + window.jQuery || document.write("