Use new _graph endpoints (#26956)

This commit is contained in:
Tim Roes 2018-12-11 16:30:14 +01:00 committed by GitHub
parent dccc2c74b3
commit eb04a36054
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ module.exports = (function () {
const dataForServer = JSON.stringify(request);
$.ajax({
type: 'POST',
url: 'http://localhost:9200/' + indexName + '/_xpack/graph/_explore',
url: 'http://localhost:9200/' + indexName + '/_graph/explore',
dataType: 'json',
contentType: 'application/json;charset=utf-8',
async: true,

View file

@ -51,7 +51,7 @@
class="list-group-item list-group-item--noBorder"
ng-if="(workspace !== null) && (configPanel === 'lastRequest')"
>
<small class="help-block">http://host:port/{{selectedIndex.name}}/_xpack/graph/_explore</small>
<small class="help-block">http://host:port/{{selectedIndex.name}}/_graph/explore</small>
<ul class="nav nav-tabs">
<li ng-class="{active: spymode === 'request'}">
<a

View file

@ -12,7 +12,7 @@ export async function callEsGraphExploreApi({ callCluster, index, query }) {
return {
ok: true,
resp: await callCluster('transport.request', {
'path': '/' + encodeURIComponent(index) + '/_xpack/graph/_explore',
'path': '/' + encodeURIComponent(index) + '/_graph/explore',
body: query,
method: 'POST',
query: {}