blob: 0defd1dabb16a667559d62632d9f05a130f51af2 [file] [log] [blame]
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>RexsterGraphResource</title>
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- CSS: implied media="all" -->
<link rel="stylesheet" href="css/style.css?v=2">
<link rel="stylesheet" href="css/prettify.css">
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
<script src="js/libs/modernizr-1.7.min.js"></script>
</head>
<body class="home">
<div class="container">
<header>
<div id="header" class="column first last span-20">
<div id="site-name" class="column span-18 append-1 prepend-1 first last"><a href="index.html">RexsterGraphResource</a></div>
<div id="primary" class="column span-18 append-1 prepend-1 first last">
<ul class="navigation">
<li id="nav-rest"><a href="rest.html">REST</a></li>
<li id="nav-data"><a href="model.html">Data Model</a></li>
</ul>
</div>
<div>
<ul class="xbreadcrumbs" id="breadcrumbs">
<li>
<a href="index.html" class="home">Home</a> &gt;
</li>
<li>
<a href="rest.html">REST</a> &gt;
<ul>
<li><a href="model.html">Data Model</a></li>
<li><a href="rest.html">REST</a></li>
</ul>
</li>
<li class="current">
<a href="resource_RexsterGraphResource.html">RexsterGraphResource</a>
<ul>
<li><a href="resource_AdminResource.html">AdminResource</a></li>
<li><a href="resource_EntityResource.html">EntityResource</a></li>
<li><a href="resource_HiveLineageResource.html">HiveLineageResource</a></li>
<li><a href="resource_MetadataDiscoveryResource.html">MetadataDiscoveryResource</a></li>
<li><a href="resource_RexsterGraphResource.html">RexsterGraphResource</a></li>
<li><a href="resource_TypesResource.html">TypesResource</a></li>
</ul>
</li>
</ul>
</div>
</div>
</header>
<div id="main" class="column first last span-20">
<h1>RexsterGraphResource</h1>
<p>Jersey Resource for lineage metadata operations.
Implements most of the GET operations of Rexster API with out the indexes.
https://github.com/tinkerpop/rexster/wiki/Basic-REST-API
This is a subset of Rexster's REST API, designed to provide only read-only methods
for accessing the backend graph.</p>
<p>The following resources are applicable:</p>
<ul>
<li>
<a href="#path__graph_edges_-id-.html">/graph/edges/{id}</a>
</li>
<li>
<a href="#path__graph_vertices.html">/graph/vertices</a>
</li>
<li>
<a href="#path__graph_vertices_-id-.html">/graph/vertices/{id}</a>
</li>
<li>
<a href="#path__graph_vertices_-id-_-direction-.html">/graph/vertices/{id}/{direction}</a>
</li>
<li>
<a href="#path__graph_vertices_properties_-id-.html">/graph/vertices/properties/{id}</a>
</li>
</ul>
<a name="path__graph_edges_-id-.html"></a>
<h1>/graph/edges/{id}</h1>
<a name="GET"></a>
<h2>GET</h2>
<p>
Get a single edge with a unique id.
GET http://host/metadata/lineage/edges/id
graph.getEdge(id);
</p>
<h3>Parameters</h3>
<table>
<tr>
<th>name</th>
<th>description</th>
<th>type</th>
<th>default</th>
</tr>
<tr>
<td>id</td>
<td>
(no documentation provided)
</td>
<td>path</td>
<td></td>
</tr>
</table>
<h3>Response Body</h3>
<table>
<tr>
<td align="right">element:</td>
<td>(custom)</td>
</tr>
<tr>
<td align="right">media types:</td>
<td>application/json</td>
</tr>
</table>
<p>(no documentation provided)</p>
<a name="path__graph_vertices.html"></a>
<h1>/graph/vertices</h1>
<a name="GET"></a>
<h2>GET</h2>
<p>
Get a list of vertices matching a property key and a value.
<p/>
GET http://host/metadata/lineage/vertices?key=<key>&value=<value>
graph.getVertices(key, value);
</p>
<h3>Parameters</h3>
<table>
<tr>
<th>name</th>
<th>description</th>
<th>type</th>
<th>default</th>
</tr>
<tr>
<td>key</td>
<td>
(no documentation provided)
</td>
<td>query</td>
<td></td>
</tr>
<tr>
<td>value</td>
<td>
(no documentation provided)
</td>
<td>query</td>
<td></td>
</tr>
</table>
<h3>Response Body</h3>
<table>
<tr>
<td align="right">element:</td>
<td>(custom)</td>
</tr>
<tr>
<td align="right">media types:</td>
<td>application/json</td>
</tr>
</table>
<p>(no documentation provided)</p>
<a name="path__graph_vertices_-id-.html"></a>
<h1>/graph/vertices/{id}</h1>
<a name="GET"></a>
<h2>GET</h2>
<p>
Get a single vertex with a unique id.
GET http://host/metadata/lineage/vertices/id
graph.getVertex(id);
</p>
<h3>Parameters</h3>
<table>
<tr>
<th>name</th>
<th>description</th>
<th>type</th>
<th>default</th>
</tr>
<tr>
<td>id</td>
<td>
(no documentation provided)
</td>
<td>path</td>
<td></td>
</tr>
</table>
<h3>Response Body</h3>
<table>
<tr>
<td align="right">element:</td>
<td>(custom)</td>
</tr>
<tr>
<td align="right">media types:</td>
<td>application/json</td>
</tr>
</table>
<p>(no documentation provided)</p>
<a name="path__graph_vertices_-id-_-direction-.html"></a>
<h1>/graph/vertices/{id}/{direction}</h1>
<a name="GET"></a>
<h2>GET</h2>
<p>
Get a list of adjacent edges with a direction.
GET http://host/metadata/lineage/vertices/id/direction
graph.getVertex(id).get{Direction}Edges();
direction: {(?!outE)(?!bothE)(?!inE)(?!out)(?!both)(?!in)(?!query).+}
</p>
<h3>Parameters</h3>
<table>
<tr>
<th>name</th>
<th>description</th>
<th>type</th>
<th>default</th>
</tr>
<tr>
<td>id</td>
<td>
(no documentation provided)
</td>
<td>path</td>
<td></td>
</tr>
<tr>
<td>direction</td>
<td>
(no documentation provided)
</td>
<td>path</td>
<td></td>
</tr>
</table>
<h3>Response Body</h3>
<table>
<tr>
<td align="right">element:</td>
<td>(custom)</td>
</tr>
<tr>
<td align="right">media types:</td>
<td>application/json</td>
</tr>
</table>
<p>(no documentation provided)</p>
<a name="path__graph_vertices_properties_-id-.html"></a>
<h1>/graph/vertices/properties/{id}</h1>
<a name="GET"></a>
<h2>GET</h2>
<p>
Get properties for a single vertex with a unique id.
This is NOT a rexster API.
<p/>
GET http://host/metadata/lineage/vertices/properties/id
</p>
<h3>Parameters</h3>
<table>
<tr>
<th>name</th>
<th>description</th>
<th>type</th>
<th>default</th>
</tr>
<tr>
<td>id</td>
<td>
(no documentation provided)
</td>
<td>path</td>
<td></td>
</tr>
<tr>
<td>relationships</td>
<td>
(no documentation provided)
</td>
<td>query</td>
<td>false</td>
</tr>
</table>
<h3>Response Body</h3>
<table>
<tr>
<td align="right">element:</td>
<td>(custom)</td>
</tr>
<tr>
<td align="right">media types:</td>
<td>application/json</td>
</tr>
</table>
<p>(no documentation provided)</p>
<div class="clear" />
</div>
<footer>
<div id="footer">
Generated by <a href="http://enunciate.codehaus.org">Enunciate</a>.
</div>
</footer>
</div> <!--! end of #container -->
<!-- JavaScript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
<script>window.jQuery || document.write("<script src='js/libs/jquery-1.5.1.min.js'>\x3C/script>")</script>
<!--manage the navigation menu-->
<script src="js/libs/xbreadcrumbs.js"></script>
<script>
$(function() {
$('#breadcrumbs').xBreadcrumbs();
});
</script>
<!-- prettify code blocks. see http://code.google.com/p/google-code-prettify/ -->
<script src="js/libs/prettify/prettify.js"></script>
<script>
$(function() {
prettyPrint();
});
</script>
<!--[if lt IE 7 ]>
<script src="js/libs/dd_belatedpng.js"></script>
<script>DD_belatedPNG.fix("img, .png_bg"); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
<![endif]-->
</body>
</html>